Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data FontData n = FontData {
- fontDataGlyphs :: SvgGlyphs n
- fontDataKerning :: Kern n
- fontDataBoundingBox :: [n]
- fontDataFileName :: String
- fontDataUnderlinePos :: n
- fontDataUnderlineThickness :: n
- fontDataOverlinePos :: Maybe n
- fontDataOverlineThickness :: Maybe n
- fontDataStrikethroughPos :: Maybe n
- fontDataStrikethroughThickness :: Maybe n
- fontDataHorizontalAdvance :: n
- fontDataFamily :: String
- fontDataStyle :: String
- fontDataWeight :: String
- fontDataVariant :: String
- fontDataStretch :: String
- fontDataSize :: Maybe String
- fontDataUnitsPerEm :: n
- fontDataPanose :: String
- fontDataSlope :: Maybe n
- fontDataAscent :: n
- fontDataDescent :: n
- fontDataXHeight :: n
- fontDataCapHeight :: n
- fontDataAccentHeight :: Maybe n
- fontDataWidths :: Maybe String
- fontDataHorizontalStem :: Maybe n
- fontDataVerticalStem :: Maybe n
- fontDataUnicodeRange :: String
- fontDataRawKernings :: [(String, [String], [String], [String], [String])]
- fontDataIdeographicBaseline :: Maybe n
- fontDataAlphabeticBaseline :: Maybe n
- fontDataMathematicalBaseline :: Maybe n
- fontDataHangingBaseline :: Maybe n
- fontDataVIdeographicBaseline :: Maybe n
- fontDataVAlphabeticBaseline :: Maybe n
- fontDataVMathematicalBaseline :: Maybe n
- fontDataVHangingBaseline :: Maybe n
- bbox_dy :: RealFloat n => FontData n -> n
- bbox_lx :: FontData n -> n
- bbox_ly :: FontData n -> n
- underlinePosition :: FontData n -> n
- underlineThickness :: FontData n -> n
- horizontalAdvance :: String -> FontData n -> n
- kernAdvance :: RealFloat n => String -> String -> Kern n -> Bool -> n
- type OutlineMap n = Map String (Path V2 n)
- type PreparedFont n = (FontData n, OutlineMap n)
- loadFont :: (Read n, RealFloat n) => FilePath -> IO (PreparedFont n)
Documentation
This type contains everything that a typical SVG font file produced by fontforge contains.
bbox_dy :: RealFloat n => FontData n -> n Source #
Difference between highest and lowest y-value of bounding box
underlinePosition :: FontData n -> n Source #
Position of the underline bar
underlineThickness :: FontData n -> n Source #
Thickness of the underline bar
horizontalAdvance :: String -> FontData n -> n Source #
Horizontal advance of a character consisting of its width and spacing, extracted out of the font data
kernAdvance :: RealFloat n => String -> String -> Kern n -> Bool -> n Source #
Change the horizontal advance of two consective chars (kerning)
type PreparedFont n = (FontData n, OutlineMap n) Source #
A font including its outline map.