Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class FontSupport c where
- withFontStyle :: TTFStyle -> c a -> c a
- withFont :: TTFFont -> c a -> c a
- withFontHint :: TTFHinting -> c a -> c a
- showText :: Alignment -> Color -> Text -> c a
- withKerning :: Bool -> c a -> c a
- withFontCache :: Cacheable a => Cache FontKey a -> c a -> c a
- data Alignment
- newtype ColorWrapper = ColorWrapper Color
- data FontKey = FontKey {}
- defaultFontKey :: TTFFont -> FontKey
- textureFromKey :: Renderer -> FontKey -> IO Texture
Interface
class FontSupport c where Source
withFontStyle :: TTFStyle -> c a -> c a Source
withFont :: TTFFont -> c a -> c a Source
withFontHint :: TTFHinting -> c a -> c a Source
showText :: Alignment -> Color -> Text -> c a Source
withKerning :: Bool -> c a -> c a Source
withFontCache :: Cacheable a => Cache FontKey a -> c a -> c a Source
Texture generation
defaultFontKey :: TTFFont -> FontKey Source