context:font(name), from a view model Property<Font>, or from bytes with
Font.decode. Metrics are for a 1 point font and grow negative upwards,
so multiply by the size and expect ascent below zero.
Fields
ascent
Distance from the baseline to the top of the em box for a 1 point font, negative.
descent
Distance from the baseline to the bottom of the em box for a 1 point font.
capHeight
Distance from the baseline to the top of capital letters, negative.
xHeight
Distance from the baseline to the top of lowercase letters, negative.
weight
Weight from 1 to 1000, 400 being regular.
isItalic
axes
Variable axes the font offers.
features
Four letter OpenType feature tags the font offers, such as ‘liga’.
Static Functions
decode
context:font, not blobs. Returns nil when the
bytes are not a font.