Text.FontInfo

The Text.FontInfo value type provides basic information about a font.

function Text.FontInfo(String name) → Text.FontInfo

Returns a FontInfo value type for the font name.

optional Float size = 12

Sets the size of the font.

property String nameread only

property Float sizeread only

The font name and size as passed to the FontInfo constructor.

property Float lineHeightread only

Returns the line height of the font.

property Float baselineread only

Returns the baseline height of the font.

property Float capHeightread only

Returns the cap height of the font.