CGxFont::NewCodeDesc
function · font · primitive
- Address
0x5cabd0· 691 bytes, up to0x5cae82- Signature
void * __thiscall (CGxFont *this, uint32_t code)- Meaning
- Returns the cached glyph of a code, making and placing it when missing
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- font/glyphs#finding-or-making-a-glyph
Finding: Finding or making a glyph in font: glyph cache and atlas
0x5cabd0(code) returns the cached descriptor of a character code, making it when missing. A hit
moves the descriptor to the front of the recency list. A miss rasterizes the glyph, places it
in a page (making a page if needed, evicting the least recently used glyph when the pages are
full) and enters it in the hash.
The derivation is in the doc.
Callers 6
- MeasureTextExtent font
- CGxFont::GetCharAdvance font
- InternalGetMaxCharsWithinWidth font
- MeasureRunFixed font
- MeasureRunProportional font
- CGxString::BuildGlyphQuad font
Callees 16
- 0x5c7f00 font
- 0x5c7f20 font
- AtlasRow::ReleaseCell font
- AtlasRow::AllocateCell font
- ElementTable::Insert font
- 0x5c96a0 font
- 0x5c96e0 font
- 0x5c9f50 font
- CGxFont::RasterizeGlyph font
- 0x5cb870 font
- 0x5cb8d0 font
- 0x5cbe90 font
- 0x5cc5e0 font
- AtlasPage::SetCellSize font
- AtlasPage::CreateTexture font
- AtlasPage::PlaceGlyph font
Calls and jumps by a bare address, from tables/calls.tsv.