Font
Constructors
Font(font,renderOptions)→Font
Properties
.urlstring
The URL of the font file to load (e.g. a .ttf from Google Fonts).
.renderOptionsPartial<FontRenderOptions>
Options that control how text is rendered, such as letter spacing, line height, and capitalization.
Describes a font with render options such as letter spacing, line height, and capitalization.
To load a font and render text, pass a
FonttogetFontFromURLwhich returns aFontRenderer.