Properties:
Name | Type | Default | Description |
---|---|---|---|
chars |
string | (string | string[])[] |
BitmapFont.ALPHANUMERIC
|
Characters included in the font set. You can also use ranges.
For example, |
name |
string |
the name of the font, this will be the name you use in the fontFamily of text style to access this font |
|
padding |
number |
4
|
Padding between glyphs on texture atlas. Lower values could mean more visual artifacts and bleeding from other glyphs, larger values increase the space required on the texture. |
resolution |
number |
1
|
Render resolution for glyphs. |
skipKerning |
boolean |
false
|
Skip generation of kerning information for the BitmapFont. If true, this could potentially increase the performance, but may impact the rendered text appearance. |
style |
TextStyle | TextStyleOptions |
Style options to render with BitmapFont. |
Members
Characters included in the font set. You can also use ranges.
For example, [['a', 'z'], ['A', 'Z'], "!@#$%^&*()~{}[] "]
.
Don't forget to include spaces ' ' in your character set!
- Default Value:
- BitmapFont.ALPHANUMERIC
the name of the font, this will be the name you use in the fontFamily of text style to access this font
Padding between glyphs on texture atlas. Lower values could mean more visual artifacts and bleeding from other glyphs, larger values increase the space required on the texture.
- Default Value:
- 4
Render resolution for glyphs.
- Default Value:
- 1
Skip generation of kerning information for the BitmapFont. If true, this could potentially increase the performance, but may impact the rendered text appearance.
- Default Value:
- false
style TextStyle | TextStyleOptions
Style options to render with BitmapFont.