| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Codec.Ktx2.Font.Shaping
Contents
Synopsis
- shapeText :: Cursor -> StackContext a -> Text -> IO [PlacedRun]
- shape :: Cursor -> StackContext a -> ((?shapeContext :: ShapeContext) => IO ()) -> IO [PlacedRun]
- data Cursor = Cursor {}
- initialCursor :: Float -> Cursor
- type PlacedRun = ((Font, Maybe Compact), [PlacedGlyph])
- data PlacedGlyph = PlacedGlyph {}
- data Font
- data Compact = Compact {}
- data Box = Box {}
Documentation
shapeText :: Cursor -> StackContext a -> Text -> IO [PlacedRun] Source #
Perform text segmentation and shaping
The next step would be converting the
shape :: Cursor -> StackContext a -> ((?shapeContext :: ShapeContext) => IO ()) -> IO [PlacedRun] Source #
Constructors
| Cursor | |
type PlacedRun = ((Font, Maybe Compact), [PlacedGlyph]) Source #
Text runs with uniform direction and script.
data PlacedGlyph Source #
Instances
| Show PlacedGlyph Source # | |
Defined in Codec.Ktx2.Font.Shaping Methods showsPrec :: Int -> PlacedGlyph -> ShowS # show :: PlacedGlyph -> String # showList :: [PlacedGlyph] -> ShowS # | |
| Eq PlacedGlyph Source # | |
Defined in Codec.Ktx2.Font.Shaping | |
re-exports
An opaque handle to the font data.
Constructors
| Compact | |
Instances
Instances
| FromJSON Box # | |||||
Defined in Graphics.MSDF.Atlas.Compact | |||||
| ToJSON Box # | |||||
| Storable Box # | |||||
Defined in Graphics.MSDF.Atlas.Compact | |||||
| Generic Box # | |||||
Defined in Graphics.MSDF.Atlas.Compact Associated Types
| |||||
| Show Box # | |||||
| Eq Box # | |||||
| Ord Box # | |||||
| type Rep Box # | |||||
Defined in Graphics.MSDF.Atlas.Compact type Rep Box = D1 ('MetaData "Box" "Graphics.MSDF.Atlas.Compact" "msdf-atlas-0.1.0.0-52c5813c3e681ad790a42ebdaa0dc8ca892c5a626699cc40a794f23892039ed8" 'False) (C1 ('MetaCons "Box" 'PrefixI 'True) ((S1 ('MetaSel ('Just "x") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Float) :*: S1 ('MetaSel ('Just "y") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Float)) :*: (S1 ('MetaSel ('Just "w") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Float) :*: S1 ('MetaSel ('Just "h") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Float)))) | |||||