Skip to end of metadata
Go to start of metadata

Table of Contents


Extends: Node 

Description

The Font node class specifies the font to be used by a Label node, or any other nodes that render text.

Nodes that use fonts include a field that stores a Font node. The font to use is specified by creating a Font node, and setting its uri and size fields.

The uri field can be set to any TrueType/OpenType font file. For example, to specify a font in XML markup:

A default system font can also be specified, such as in the following:

The table below shows the possible system font values.

Value
SmallestSystemFont
SmallestBoldSystemFont
SmallSystemFont
SmallBoldSystemFont
MediumSystemFont
MediumBoldSystemFont
LargeSystemFont
LargeBoldSystemFont

The font can also be specified in BrightScript, for example:

Fields

FieldTypeDefaultUse
uriuri""Specifies a TrueType or OpenType font file. Currently only font files included in the application can be specified.
sizeinteger1Specifies the size of the font in points.
fallbackGlyphstring""

String representation of a Unicode character to display when an unsupported glyph is encountered.

For example, "u0020" would render a space for any unrenderable characters.

  • No labels