Interface: FontAsset
Font asset to use in the game.
Properties
fontName
fontName:
string
Name of the font to use when referring to it within m2c2kit
Defined in
FontAsset.ts:8
lazy?
optional
lazy:boolean
If true, the font will not be fully loaded until it is needed. Default is false. Lazy loading is useful for fonts involved in localization. These should be lazy loaded because they may not be needed.
Defined in
FontAsset.ts:15
sharedFont?
optional
sharedFont:SharedFont
Internal
Font url and raw data that has been shared with other games in the session. Undefined if this font was not shared. For m2c2kit library use only
Defined in
FontAsset.ts:17
url
url:
string
URL of font (TrueType font) to load
Defined in
FontAsset.ts:10