freetype-simple-0.1.0.1: Single line text rendering for OpenGL ES

Safe HaskellNone
LanguageHaskell2010

Graphics.Rendering.FreeType.Simple

Synopsis

Documentation

data Font Source

Constructors

Font 

Fields

fontFace :: FT_Face
 
fontAscender :: Float

Ascender in em.

fontDescender :: Float

Descender in em.

fontBBox :: Box V2 Float

(x min, y min) (x max, y max) in em.

runFT :: IO CInt -> IO () Source

ftlib :: FT_Library Source

Default FreeType FT_Library.

readFont :: FilePath -> IO Font Source

Create Font from a given path.

textLine :: Font -> Float -> String -> IO (ForeignPtr Word8, V2 Int, Box V2 Int) Source

Single line text rendering