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

Function SetFontMapCacheSize

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

Source from the content-addressed store, hash-verified

259 }
260
261 static void SetFontMapCacheSize(HFontMap font_map, uint16_t cell_width, uint16_t cell_height, uint16_t max_ascent)
262 {
263 font_map->m_IsCacheSizeDirty = 1;
264
265 SetupCache(font_map, font_map->m_CacheWidth, font_map->m_CacheHeight,
266 cell_width, cell_height, max_ascent);
267 }
268 static void GetFontMapCacheSize(HFontMap font_map, uint16_t* cell_width, uint16_t* cell_height, uint16_t* max_ascent)
269 {
270 *cell_width = font_map->m_CacheCellWidth;

Callers 2

AddGlyphByIndexFunction · 0.85
ResetCacheFunction · 0.85

Calls 1

SetupCacheFunction · 0.85

Tested by

no test coverage detected