Module

Graphics.Drawing.Font

Package
purescript-drawing
Repository
paf31/purescript-drawing

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

#Font Source

data Font

Fonts.

Instances

#font Source

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

Create a Font.

#fontString Source

fontString :: Font -> String

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

#FontFamily Source

newtype FontFamily

Font family.

Instances

#serif Source

serif :: FontFamily

Serif font

#sansSerif Source

sansSerif :: FontFamily

Sans serif font

#monospace Source

monospace :: FontFamily

Monospaced font

#cursive Source

cursive :: FontFamily

Cursive font

#fantasy Source

fantasy :: FontFamily

Fantasy font

#customFont Source

customFont :: String -> FontFamily

Use a custom font

#FontOptions Source

newtype FontOptions

Encapsulates font options.

Instances

#bold Source

bold :: FontOptions

Use a bold font.

#bolder Source

bolder :: FontOptions

Use a bolder font.

#light Source

light :: FontOptions

Use a light font.

#italic Source

italic :: FontOptions

Use an italic style.

#oblique Source

oblique :: FontOptions

Use an oblique style.

#smallCaps Source

smallCaps :: FontOptions

Use small caps.