Creates a read-only instance of a Font. Each one of the attributes is optional.
The font family as an array of strings.
The size of the font.
The style of the font.
The weight of the font.
The font family collection or null
if no family is defined.
The size of the font or null
if no size is defined.
The font style, for example normal
or italic
. Can be null
if the font does
not have a specific style defined.
The font weight value, for example 400
for normal, or 700
for bold. Can be
null
if the font does not have an explicit weight defined.
A (CSS compliant) representation of the Font.
Creates a Font instance given an object with optional attributes.
An object with optional font attributes.
A Font object.
Representation of a font with optional family, size, style and weight attributes. Used as a value for font properties. The Properties.get method returns a Font instance when called with a font property name.