MCPcopy Create free account
hub / github.com/RenderKit/embree / IsGlyphRangeUnused

Method IsGlyphRangeUnused

tutorials/common/imgui/imgui_draw.cpp:3227–3236  ·  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

3225// API is designed this way to avoid exposing the 4K page size
3226// e.g. use with IsGlyphRangeUnused(0, 255)
3227bool ImFont::IsGlyphRangeUnused(unsigned int c_begin, unsigned int c_last)
3228{
3229 unsigned int page_begin = (c_begin / 4096);
3230 unsigned int page_last = (c_last / 4096);
3231 for (unsigned int page_n = page_begin; page_n <= page_last; page_n++)
3232 if ((page_n >> 3) < sizeof(Used4kPagesMap))
3233 if (Used4kPagesMap[page_n >> 3] & (1 << (page_n & 7)))
3234 return false;
3235 return true;
3236}
3237
3238void ImFont::SetGlyphVisible(ImWchar c, bool visible)
3239{

Callers 1

DebugNodeFontMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected