free-game-0.3.1.1: Create graphical applications for free.

Portabilitynon-portable
Stabilityprovisional
MaintainerFumiaki Kinsohita <fumiexcel@gmail.com>
Safe HaskellNone

Graphics.FreeGame.Data.Font

Description

Rendering characters

Synopsis

Documentation

data Font Source

Font object

loadFont :: FilePath -> IO FontSource

Create a Font from the given file.

text :: Font -> Float -> String -> PictureSource

Render a text by the specified Font.

withRenderString :: Font -> Float -> String -> (Picture -> Game a) -> Game aSource

Render the string by the given font, and pass it to the Game action.

withRenderCharacters :: Font -> Float -> String -> ([Picture] -> Game a) -> Game aSource

Render the string by the given font, and pass it to the Game action.