Safe Haskell | None |
---|
Module in charge of loading fonts.
Functions
decodeFont :: ByteString -> Either String FontSource
Decode a in-memory true type file.
loadFontFile :: FilePath -> IO (Either String Font)Source
Load a font file, the file path must be pointing to the true type file (.ttf)
:: Dpi | Dot per inch of the output. |
-> (Float, Float) | Initial position of the baseline. |
-> [(Font, PointSize, String)] | Text to draw |
-> [[Vector (Float, Float)]] | List of contours for each char |
Extract a list of outlines for every char in the string. The given curves are in an image like coordinate system, with the origin point in the upper left corner.