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

Function IsTextureTooSmall

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

Is the font cache too small for the largest glyph?

Source from the content-addressed store, hash-verified

574
575 // Is the font cache too small for the largest glyph?
576 static bool IsTextureTooSmall(HFontMap font_map)
577 {
578 // If the texture is actually too small
579 return font_map->m_CacheWidth < font_map->m_CacheCellWidth ||
580 font_map->m_CacheHeight < font_map->m_CacheCellHeight;
581 }
582
583 void UpdateCacheTexture(HFontMap font_map)
584 {

Callers 1

UpdateCacheTextureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected