Skip to main content

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

Source

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.

Source

FontAsset.ts:15


sharedFont?

Internal

optional sharedFont: SharedFont

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

Source

FontAsset.ts:17


url

url: string

URL of font (TrueType font) to load

Source

FontAsset.ts:10