Module

Graphics.Drawing.Font

This module defines preset fonts, and functions for creating fonts.

#Font

data Font

Fonts.

Instances

#font

font :: FontFamily -> Int -> FontOptions -> Font

Create a Font.

#fontString

fontString :: Font -> String

Turn a Font into a String which can be used with Graphics.Canvas.setFont.

#FontFamily

newtype FontFamily

Font family.

Instances

#serif

serif :: FontFamily

Serif font

#sansSerif

sansSerif :: FontFamily

Sans serif font

#monospace

monospace :: FontFamily

Monospaced font

#cursive

cursive :: FontFamily

Cursive font

#fantasy

fantasy :: FontFamily

Fantasy font

#customFont

customFont :: String -> FontFamily

Use a custom font

#FontOptions

newtype FontOptions

Encapsulates font options.

Instances

#bold

bold :: FontOptions

Use a bold font.

#bolder

bolder :: FontOptions

Use a bolder font.

#light

light :: FontOptions

Use a light font.

#italic

italic :: FontOptions

Use an italic style.

#oblique

oblique :: FontOptions

Use an oblique style.

#smallCaps

smallCaps :: FontOptions

Use small caps.

Modules