Portability | non-portable |
---|---|
Stability | provisional |
Maintainer | Fumiaki Kinoshita <fumiexcel@gmail.com> |
Safe Haskell | None |
Rendering characters
- data Font
- loadFont :: MonadIO m => FilePath -> m Font
- fontBoundingBox :: Font -> BoundingBox Float
- metricsAscent :: Font -> Float
- metricsDescent :: Font -> Float
- charToBitmap :: FromFinalizer m => Font -> Float -> Char -> m 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 :: FromFinalizer m => Font -> Float -> Char -> m RenderedCharSource
data RenderedChar Source
RenderedChar | |
|