Gleam-0.1.0.2: HTML Canvas graphics, animations and simulations.

Safe HaskellSafe
LanguageHaskell2010

Text

Synopsis

Documentation

data Font Source #

A font.

Constructors

Arial 
Verdana 
TimesNewRoman 
CourierNew 
Serif 
SansSerif 
Font String

A html font family

Instances

Eq Font Source # 

Methods

(==) :: Font -> Font -> Bool

(/=) :: Font -> Font -> Bool

Show Font Source # 

Methods

showsPrec :: Int -> Font -> ShowS

show :: Font -> String

showList :: [Font] -> ShowS

data FontSize Source #

A font size, given in points.

Constructors

Size Int 

Instances

Eq FontSize Source # 

Methods

(==) :: FontSize -> FontSize -> Bool

(/=) :: FontSize -> FontSize -> Bool

Show FontSize Source # 

Methods

showsPrec :: Int -> FontSize -> ShowS

show :: FontSize -> String

showList :: [FontSize] -> ShowS

getCombinedFont :: Font -> FontSize -> String Source #

Combines a Font and FontSize to return a html string representing them.