Methods
Static addGlyph
- addGlyph(world: WorldBase, fontEntity: Entity, utf32CharacterValue: number, bearingX: number, bearingY: number, advance: number, width: number, height: number, characterRegion: Rect): void
-
Parameters
-
-
-
utf32CharacterValue: number
-
bearingX: number
-
bearingY: number
-
advance: number
-
width: number
-
height: number
-
characterRegion: Rect
Returns void
Static createBitmapFont
- createBitmapFont(world: WorldBase, textureAtlasImg: Entity, size: number, ascent: number, descent: number): Entity
-
Parameters
-
-
textureAtlasImg: Entity
-
size: number
-
ascent: number
-
descent: number
The bitmap font entity.
Static createNativeFont
-
Parameters
The native font entity.
Static createTextWithBitmapFont
-
Parameters
-
-
-
text: NativeString
-
size: number
-
-
-
The text entity
Static createTextWithNativeFont
-
Parameters
-
-
-
text: NativeString
-
size: number
-
italic: boolean
-
weight: number
-
-
-
The text entity.
Helper function that adds a glyph to a bitmap font.