free-game-0.3.1.1: Create graphical applications for free.
Graphics.FreeGame.Data.Font
Description
Rendering characters
Synopsis
data Font Source
Font object
loadFont :: FilePath -> IO FontSource
Create a Font from the given file.
Font
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.
Game
withRenderCharacters :: Font -> Float -> String -> ([Picture] -> Game a) -> Game aSource