Font

1.2.0+

Wrapper around a native font resource.

Note: Fonts are per-engine, they can thus be shared by multiple scenes.

.capHeight: number 

Cap height in object space. This is the typical height of capital letters. Can be 0 if not defined by the font.

.emHeight: number 

Em height in object space. Equivalent to line height.

.outlineSize: number 

1.2.1+

Outline size. This is the factor by which characters are expanded to create the outline effect. Returns 0 if the font was compiled without an outline.

.xHeight: number 

X height in object space. This is the typical height of lowercase letters. Can be 0 if not defined by the font.