PixelFontGlyph
Description
Helper class for storing glyph specification data.
The following figure shows the metrics of an exemplary font glyph:
## := one pixel __________________ ___ | | | | | | A=3 | ________ | __| | | #### | | | | |## ##| | | | |## ##| | | B=6 | |########| | | | |## ##| | | | |##____##| | __| | | | |__________________| __| C=2 |____|________|____| D=2 E=4 F=2
The outer rectangle represents the font glyph box. In a pixel font, all font glyph boxes have the same height (see IPixelFontInfo.Height, i.e. A + B + C
) and the same baseline distance (see IPixelFontInfo.Ascent, i.e. A + B
). The inner rectangle represents the trimmed glyph pixels, which result from removing all empty pixel rows resp. columns from the edges of the font glyph box.
- See also
Public / Attributes
Bounds
The bounds of the trimmed glyph pixels in the font image.
The font image is usually used as a GPU texture during rendering, so that value may be used to compute texture coordinates.