cattrap-0.6.0.0: Lays out boxes according to the CSS Box Model.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Graphics.Layout.CSS.Font

Description

Infrastructure for parsing & desugaring CSS properties related to fonts.

Synopsis

Documentation

data Font' Source #

A Harfbuzz font with sizing parameters.

Constructors

Font' 

Fields

Instances

Instances details
Show Font' Source # 
Instance details

Defined in Graphics.Layout.CSS.Length

Methods

showsPrec :: Int -> Font' -> ShowS #

show :: Font' -> String #

showList :: [Font'] -> ShowS #

Eq Font' Source # 
Instance details

Defined in Graphics.Layout.CSS.Length

Methods

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

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

(PropertyParser x, Zero m, Zero n) => Default (UserData m n x) Source # 
Instance details

Defined in Graphics.Layout.CSS

Methods

def :: UserData m n x Source #

placeholderFont :: Font' Source #

zero'd Font' to serve as the root's parent in a font heirarchy.

hbUnit :: Double Source #

Scale-factor for text-shaping APIs.

pattern2hbfont :: Pattern -> Int -> [Variation] -> Font Source #

Convert from FontConfig query result to a Harfbuzz font.

pattern2font :: Pattern -> CSSFont -> Font' -> Font' -> Font' Source #

Convert Parsed CSS to a Font'. Includes sizing parameters derived from a root & parent Font'.

data CSSFont Source #

Parsed CSS font properties, excluding the FontConfig query.

Constructors

CSSFont 

Fields

Instances

Instances details
PropertyParser CSSFont Source # 
Instance details

Defined in Graphics.Layout.CSS.Font

variations' :: Double -> CSSFont -> [Variation] Source #

All font-variations from the parsed CSS properties. | Requires the resolved font-size in case font-optical-sizing is set.