Module
Graphics.Drawing.Font
- Package
- purescript-drawing
- Repository
- paf31/purescript-drawing
This module defines preset fonts, and functions for creating fonts.
#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
.
#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
#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.