Font

new Font()

Font class for Text rendering configuration.

Properties
NameTypeDescription
sizenumber

Font size in pixels.

familystring

Font family name.

stylestring

Font style (normal, bold, italic).

Methods

toString() → {string}

Convert font to CSS font string.

Returns:

CSS font string.

Type: 
string