- _getChars
PoolIntArray _getChars()
- _getKernings
PoolIntArray _getKernings()
- _getTextures
Array _getTextures()
- _setChars
void _setChars(PoolIntArray arg0)
- _setKernings
void _setKernings(PoolIntArray arg0)
- _setTextures
void _setTextures(Array arg0)
- addChar
void addChar(long character, long texture, Rect2 rect, Vector2 _align, double advance)
Adds a character to the font, where character is the Unicode value, texture is the texture index, rect is the region in the texture (in pixels!), align is the (optional) alignment for the character and advance is the (optional) advance.
- addKerningPair
void addKerningPair(long char_a, long char_b, long kerning)
Adds a kerning pair to the BitmapFont as a difference. Kerning pairs are special cases where a typeface advance is determined by the next character.
- addTexture
void addTexture(Texture texture)
- clear
void clear()
Clears all the font data and settings.
- createFromFnt
GodotError createFromFnt(String path)
Creates a BitmapFont from the *.fnt file at path.
- getFallback
Ref!BitmapFont getFallback()
- getKerningPair
long getKerningPair(long char_a, long char_b)
Returns a kerning pair as a difference.
- getTexture
Ref!Texture getTexture(long idx)
Returns the font atlas texture at index idx.
- getTextureCount
long getTextureCount()
Returns the number of textures in the BitmapFont atlas.
- opAssign
typeof(null) opAssign(typeof(null) n)
- opEquals
bool opEquals(BitmapFont other)
- opEquals
bool opEquals(typeof(null) n)
- setAscent
void setAscent(double px)
- setDistanceFieldHint
void setDistanceFieldHint(bool enable)
- setFallback
void setFallback(BitmapFont fallback)
- setHeight
void setHeight(double px)
- toHash
size_t toHash()
- ascent
double ascent [@property getter]
double ascent [@property setter]
Ascent (number of pixels above the baseline).
- chars
PoolIntArray chars [@property getter]
PoolIntArray chars [@property setter]
- distanceField
bool distanceField [@property getter]
bool distanceField [@property setter]
If true, distance field hint is enabled.
- fallback
BitmapFont fallback [@property getter]
BitmapFont fallback [@property setter]
- height
double height [@property getter]
double height [@property setter]
Total font height (ascent plus descent) in pixels.
- kernings
PoolIntArray kernings [@property getter]
PoolIntArray kernings [@property setter]
- textures
Array textures [@property getter]
Array textures [@property setter]
Renders text using fonts under the url=https://www.angelcode.com/products/bmfont/BMFont/url format. Handles files with the .fnt extension.
Renders text using *.fnt fonts containing texture atlases. Supports distance fields. For using vector font files like TTF directly, see DynamicFont.