MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / IsGlyphRangeUnused

Method IsGlyphRangeUnused

KBotExt/imgui/imgui_draw.cpp:3299–3308  ·  view source on GitHub ↗

API is designed this way to avoid exposing the 4K page size e.g. use with IsGlyphRangeUnused(0, 255)

Source from the content-addressed store, hash-verified

3297// API is designed this way to avoid exposing the 4K page size
3298// e.g. use with IsGlyphRangeUnused(0, 255)
3299bool ImFont::IsGlyphRangeUnused(unsigned int c_begin, unsigned int c_last)
3300{
3301 unsigned int page_begin = (c_begin / 4096);
3302 unsigned int page_last = (c_last / 4096);
3303 for (unsigned int page_n = page_begin; page_n <= page_last; page_n++)
3304 if ((page_n >> 3) < sizeof(Used4kPagesMap))
3305 if (Used4kPagesMap[page_n >> 3] & (1 << (page_n & 7)))
3306 return false;
3307 return true;
3308}
3309
3310void ImFont::SetGlyphVisible(ImWchar c, bool visible)
3311{

Callers 1

DebugNodeFontMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected