helm-1.0.0: A functionally reactive game engine.

Safe HaskellSafe
LanguageHaskell2010

Helm.Graphics2D.Text

Contents

Description

Contains all the data structures and functions for composing pieces of graphical text.

Synopsis

Types

data Text Source

Represents a graphical piece of text, containing a UTF-8 string and any relevant style fields.

Composing

defaultText :: Text Source

Create the default text. By default it is is black sans-serif with a height of 14pt.

toText :: String -> Text Source

Create a text from a string. By default, this text will be 14pt, black and unstyled.

showText :: Show a => a -> Text Source

Create a text from a type instancing Show.

Formatting

light :: Text -> Text Source

Set the weight of a piece of text to light.

bold :: Text -> Text Source

Set the weight of a text to bold.

italic :: Text -> Text Source

Set the slant of a piece of text to italic.

oblique :: Text -> Text Source

Set the slant of a piece of text to oblique.

color :: Color -> Text -> Text Source

Set the color of a piece of text.

typeface :: String -> Text -> Text Source

Set the typeface of the text.

height :: Double -> Text -> Text Source

Set the size of a piece of text.