| 363 | } |
| 364 | |
| 365 | static FontResult HandleCacheMiss(dmRender::HFontMap font_map, HFont font, uint32_t glyph_index, uint64_t key, FontGlyph** glyph) |
| 366 | { |
| 367 | if (!font_map->m_OnGlyphCacheMiss) |
| 368 | return FONT_RESULT_ERROR; |
| 369 | |
| 370 | FontResult r = font_map->m_OnGlyphCacheMiss(font_map->m_OnGlyphCacheMissContext, font_map, font, glyph_index, glyph); |
| 371 | if (FONT_RESULT_OK == r && glyph != 0) |
| 372 | { |
| 373 | return FONT_RESULT_OK; |
| 374 | } |
| 375 | |
| 376 | return FONT_RESULT_ERROR; |
| 377 | } |
| 378 | |
| 379 | FontResult GetOrCreateGlyphByIndex(dmRender::HFontMap font_map, HFont font, uint32_t glyph_index, FontGlyph** glyph) |
| 380 | { |
no outgoing calls
no test coverage detected