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