A single entry from the BitmapTextSize
characters array.
The position and dimensions take the font size into account, but are not translated into the local space of the Game Object itself.
name | type | description |
---|---|---|
i | number |
The index of this character within the BitmapText wrapped text string. |
idx | number |
The index of this character within the BitmapText text string. |
char | string |
The character. |
code | number |
The character code of the character. |
x | number |
The x position of the character in the BitmapText. |
y | number |
The y position of the character in the BitmapText. |
w | number |
The width of the character. |
h | number |
The height of the character. |
t | number |
The top of the line this character is on. |
r | number |
The right-most point of this character, including xAdvance. |
b | number |
The bottom of the line this character is on. |
line | number |
The line number the character appears on. |
glyph | Phaser.Types.GameObjects.BitmapText.BitmapFontCharacterData |
Reference to the glyph object this character is using. |