MCPcopy Create free account
hub / github.com/defold/defold / GetOrCreateGlyph

Function GetOrCreateGlyph

engine/render/src/render/font/fontmap.cpp:435–439  ·  view source on GitHub ↗

Used for test

Source from the content-addressed store, hash-verified

433
434 // Used for test
435 FontResult GetOrCreateGlyph(dmRender::HFontMap font_map, HFont font, uint32_t codepoint, FontGlyph** glyph)
436 {
437 uint32_t glyph_index = FontGetGlyphIndex(font, codepoint);
438 return GetOrCreateGlyphByIndex(font_map, font, glyph_index, glyph);
439 }
440
441 void AddGlyphByIndex(dmRender::HFontMap font_map, HFont font, uint32_t glyph_index, FontGlyph* glyph)
442 {

Callers 1

GetGlyphFunction · 0.85

Calls 2

FontGetGlyphIndexFunction · 0.85
GetOrCreateGlyphByIndexFunction · 0.85

Tested by 1

GetGlyphFunction · 0.68