BitmapFont.Metrics

Glyphs metrics

Members

Variables

advance
int[] advance;

Horizontal distance from the origin of the current character to the next

ascent
int ascent;

How much the font rises from the baseline (Positive value)

chars
int[] chars;

All the characters defined in the font

descent
int descent;

How much the font drops below the baseline (Negative value)

height
int[] height;

Total height of the character

kerning
int[] kerning;

Array of triple values (3 times the length of kerningCount) \ Organised like this ..., PreviousChar, CurrentChar, OffsetX, ...

kerningCount
int kerningCount;

The number of kerning triplets (a third of the size of the kerning array)

offsetX
int[] offsetX;

Distance from the origin of the character to draw \ Positive value = offset to the right

offsetY
int[] offsetY;

Distance from the origin of the character to draw \ Positive value = offset to the top

packX
int[] packX;

Left coordinate of the glyph in the texture

packY
int[] packY;

Top coordinate of the glyph in the texture

size
int size;

Size of the font

width
int[] width;

Total width of the character

Meta