Portability | non-portable |
---|---|
Stability | provisional |
Maintainer | Fumiaki Kinoshita <fumiexcel@gmail.com> |
Safe Haskell | None |
Rendering characters
- data Font
- loadFont :: FilePath -> IO Font
- fontBoundingBox :: Font -> BoundingBox Float
- metricsAscent :: Font -> Float
- metricsDescent :: Font -> Float
- charToBitmap :: Font -> Float -> Char -> FinalizerT IO RenderedChar
- data RenderedChar = RenderedChar {
- charBitmap :: Bitmap
- charOffset :: V2 Float
- charAdvance :: Float
Documentation
fontBoundingBox :: Font -> BoundingBox FloatSource
Get the font's boundingbox.
metricsAscent :: Font -> FloatSource
Get the font's metrics.
metricsDescent :: Font -> FloatSource
Get the font's metrics.
charToBitmap :: Font -> Float -> Char -> FinalizerT IO RenderedCharSource
data RenderedChar Source
RenderedChar | |
|