| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.MSDF.Atlas.Layout
Synopsis
- data Layout = Layout {}
- data Atlas = Atlas {}
- data AtlasType
- data YOrigin
- data Metrics = Metrics {
- emSize :: Float
- lineHeight :: Float
- ascender :: Float
- descender :: Float
- underlineY :: Float
- underlineThickness :: Float
- data Glyph = Glyph {}
- newtype ByCodepoint = ByCodepoint (IntMap Glyph)
- byCodepoint :: Foldable t => t Glyph -> ByCodepoint
- lookupCodepoint :: Char -> ByCodepoint -> Maybe Glyph
- newtype ByIndex = ByIndex (Vector Glyph)
- lookupGlyph :: Int -> ByIndex -> Maybe Glyph
- byIndex :: Foldable t => t Glyph -> Either String ByIndex
- data Bounds = Bounds {}
- data Kerning = Kerning {}
Documentation
Constructors
| Layout | |
Instances
Constructors
| Atlas | |
Instances
| FromJSON Atlas Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout | |||||
| ToJSON Atlas Source # | |||||
| Generic Atlas Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout Associated Types
| |||||
| Show Atlas Source # | |||||
| Eq Atlas Source # | |||||
| Ord Atlas Source # | |||||
| type Rep Atlas Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout type Rep Atlas = D1 ('MetaData "Atlas" "Graphics.MSDF.Atlas.Layout" "msdf-atlas-0.1.0.0-FCW1Xz2A9d5GwoksUUQXi9" 'False) (C1 ('MetaCons "Atlas" 'PrefixI 'True) ((S1 ('MetaSel ('Just "aType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AtlasType) :*: (S1 ('MetaSel ('Just "distanceRange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Float)) :*: S1 ('MetaSel ('Just "distanceRangeMiddle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Float)))) :*: ((S1 ('MetaSel ('Just "size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Float) :*: S1 ('MetaSel ('Just "width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "yOrigin") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 YOrigin))))) | |||||
Constructors
| Hardmask | non-anti-aliased binary image |
| Softmask | anti-aliased image |
| SDF | true signed distance field (SDF) |
| PSDF | signed perpendicular distance field (PSDF) |
| MSDF | multi-channel signed distance field (MSDF) |
| MTSDF | combination of MSDF and true SDF in the alpha channel |
Instances
| FromJSON AtlasType Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout | |||||
| ToJSON AtlasType Source # | |||||
| Bounded AtlasType Source # | |||||
| Enum AtlasType Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout Methods succ :: AtlasType -> AtlasType # pred :: AtlasType -> AtlasType # fromEnum :: AtlasType -> Int # enumFrom :: AtlasType -> [AtlasType] # enumFromThen :: AtlasType -> AtlasType -> [AtlasType] # enumFromTo :: AtlasType -> AtlasType -> [AtlasType] # enumFromThenTo :: AtlasType -> AtlasType -> AtlasType -> [AtlasType] # | |||||
| Generic AtlasType Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout Associated Types
| |||||
| Show AtlasType Source # | |||||
| Eq AtlasType Source # | |||||
| Ord AtlasType Source # | |||||
| type Rep AtlasType Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout type Rep AtlasType = D1 ('MetaData "AtlasType" "Graphics.MSDF.Atlas.Layout" "msdf-atlas-0.1.0.0-FCW1Xz2A9d5GwoksUUQXi9" 'False) ((C1 ('MetaCons "Hardmask" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Softmask" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SDF" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "PSDF" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MSDF" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MTSDF" 'PrefixI 'False) (U1 :: Type -> Type)))) | |||||
Instances
| FromJSON YOrigin Source # | |
Defined in Graphics.MSDF.Atlas.Layout | |
| ToJSON YOrigin Source # | |
| Bounded YOrigin Source # | |
| Enum YOrigin Source # | |
| Generic YOrigin Source # | |
Defined in Graphics.MSDF.Atlas.Layout | |
| Show YOrigin Source # | |
| Eq YOrigin Source # | |
| Ord YOrigin Source # | |
Defined in Graphics.MSDF.Atlas.Layout | |
| type Rep YOrigin Source # | |
Useful font metric values retrieved from the font. All values are in em's.
Constructors
| Metrics | |
Fields
| |
Instances
| FromJSON Metrics Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout | |||||
| ToJSON Metrics Source # | |||||
| Generic Metrics Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout Associated Types
| |||||
| Show Metrics Source # | |||||
| Eq Metrics Source # | |||||
| Ord Metrics Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout | |||||
| type Rep Metrics Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout type Rep Metrics = D1 ('MetaData "Metrics" "Graphics.MSDF.Atlas.Layout" "msdf-atlas-0.1.0.0-FCW1Xz2A9d5GwoksUUQXi9" 'False) (C1 ('MetaCons "Metrics" 'PrefixI 'True) ((S1 ('MetaSel ('Just "emSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Float) :*: (S1 ('MetaSel ('Just "lineHeight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Float) :*: S1 ('MetaSel ('Just "ascender") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Float))) :*: (S1 ('MetaSel ('Just "descender") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Float) :*: (S1 ('MetaSel ('Just "underlineY") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Float) :*: S1 ('MetaSel ('Just "underlineThickness") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Float))))) | |||||
Constructors
| Glyph | |
Instances
| FromJSON Glyph Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout | |||||
| ToJSON Glyph Source # | |||||
| Generic Glyph Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout Associated Types
| |||||
| Show Glyph Source # | |||||
| Eq Glyph Source # | |||||
| Ord Glyph Source # | |||||
| type Rep Glyph Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout type Rep Glyph = D1 ('MetaData "Glyph" "Graphics.MSDF.Atlas.Layout" "msdf-atlas-0.1.0.0-FCW1Xz2A9d5GwoksUUQXi9" 'False) (C1 ('MetaCons "Glyph" 'PrefixI 'True) ((S1 ('MetaSel ('Just "index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "unicode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "advance") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Float) :*: (S1 ('MetaSel ('Just "planeBounds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bounds)) :*: S1 ('MetaSel ('Just "atlasBounds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bounds)))))) | |||||
newtype ByCodepoint Source #
Constructors
| ByCodepoint (IntMap Glyph) |
Instances
| FromJSON ByCodepoint Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout | |||||
| ToJSON ByCodepoint Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout Methods toJSON :: ByCodepoint -> Value # toEncoding :: ByCodepoint -> Encoding # toJSONList :: [ByCodepoint] -> Value # toEncodingList :: [ByCodepoint] -> Encoding # omitField :: ByCodepoint -> Bool # | |||||
| Generic ByCodepoint Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout Associated Types
| |||||
| Show ByCodepoint Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout Methods showsPrec :: Int -> ByCodepoint -> ShowS # show :: ByCodepoint -> String # showList :: [ByCodepoint] -> ShowS # | |||||
| Eq ByCodepoint Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout | |||||
| Ord ByCodepoint Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout Methods compare :: ByCodepoint -> ByCodepoint -> Ordering # (<) :: ByCodepoint -> ByCodepoint -> Bool # (<=) :: ByCodepoint -> ByCodepoint -> Bool # (>) :: ByCodepoint -> ByCodepoint -> Bool # (>=) :: ByCodepoint -> ByCodepoint -> Bool # max :: ByCodepoint -> ByCodepoint -> ByCodepoint # min :: ByCodepoint -> ByCodepoint -> ByCodepoint # | |||||
| type Rep ByCodepoint Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout type Rep ByCodepoint = D1 ('MetaData "ByCodepoint" "Graphics.MSDF.Atlas.Layout" "msdf-atlas-0.1.0.0-FCW1Xz2A9d5GwoksUUQXi9" 'True) (C1 ('MetaCons "ByCodepoint" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (IntMap Glyph)))) | |||||
byCodepoint :: Foldable t => t Glyph -> ByCodepoint Source #
lookupCodepoint :: Char -> ByCodepoint -> Maybe Glyph Source #
Instances
Instances
| FromJSON Bounds Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout | |||||
| ToJSON Bounds Source # | |||||
| Generic Bounds Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout Associated Types
| |||||
| Show Bounds Source # | |||||
| Eq Bounds Source # | |||||
| Ord Bounds Source # | |||||
| type Rep Bounds Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout type Rep Bounds = D1 ('MetaData "Bounds" "Graphics.MSDF.Atlas.Layout" "msdf-atlas-0.1.0.0-FCW1Xz2A9d5GwoksUUQXi9" 'False) (C1 ('MetaCons "Bounds" 'PrefixI 'True) ((S1 ('MetaSel ('Just "left") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Float) :*: S1 ('MetaSel ('Just "top") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Float)) :*: (S1 ('MetaSel ('Just "right") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Float) :*: S1 ('MetaSel ('Just "bottom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Float)))) | |||||
Constructors
| Kerning | |
Instances
| FromJSON Kerning Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout | |||||
| ToJSON Kerning Source # | |||||
| Generic Kerning Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout Associated Types
| |||||
| Show Kerning Source # | |||||
| Eq Kerning Source # | |||||
| Ord Kerning Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout | |||||
| type Rep Kerning Source # | |||||
Defined in Graphics.MSDF.Atlas.Layout type Rep Kerning = D1 ('MetaData "Kerning" "Graphics.MSDF.Atlas.Layout" "msdf-atlas-0.1.0.0-FCW1Xz2A9d5GwoksUUQXi9" 'False) (C1 ('MetaCons "Kerning" 'PrefixI 'True) ((S1 ('MetaSel ('Just "advance") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Float) :*: S1 ('MetaSel ('Just "unicode1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "unicode2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "index1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "index2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))))) | |||||