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 -> FontCreate a Font.
#fontString Source
fontString :: Font -> StringTurn a Font into a String which can be used with Graphics.Canvas.setFont.
#serif Source
serif :: FontFamilySerif font
#sansSerif Source
sansSerif :: FontFamilySans serif font
#monospace Source
monospace :: FontFamilyMonospaced font
#cursive Source
cursive :: FontFamilyCursive font
#fantasy Source
fantasy :: FontFamilyFantasy font
#customFont Source
customFont :: String -> FontFamilyUse a custom font
#FontOptions Source
#bold Source
bold :: FontOptionsUse a bold font.
#bolder Source
bolder :: FontOptionsUse a bolder font.
#light Source
light :: FontOptionsUse a light font.
#italic Source
italic :: FontOptionsUse an italic style.
#oblique Source
oblique :: FontOptionsUse an oblique style.
#smallCaps Source
smallCaps :: FontOptionsUse small caps.