#include <GlyphCache.h>
Public Member Functions | |
void | Reset () |
Public Attributes | |
AtomFont::GlyphSize | m_glyphSize = AtomFont::defaultGlyphSize |
The render resolution of the glyph in the glyph bitmap. | |
unsigned int | m_usage |
int | m_slotIndex |
int | m_horizontalAdvance |
Advance width. See FT_Glyph_Metrics::horiAdvance. | |
uint32_t | m_currentCharacter |
uint8_t | m_characterWidth |
Glyph width (in pixel) | |
uint8_t | m_characterHeight |
Glyph height (in pixel) | |
int32_t | m_characterOffsetX |
Glyph's left-side bearing (in pixels). See FT_GlyphSlotRec::bitmap_left. | |
int32_t | m_characterOffsetY |
Glyph's top bearing (in pixels). See FT_GlyphSlotRec::bitmap_top. | |
GlyphBitmap | m_glyphBitmap |
Contains a buffer storing a copy of the glyph from FreeType. | |
Glyph cache slots store the bitmap buffer and glyph metadata from FreeType.
This bitmap buffer is eventually copied to a FontTexture texture buffer. A glyph cache slot bitmap buffer only holds a single glyph, whereas the FontTexture stores multiple glyphs in a grid (row/col) format.