MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / ImFontAtlasBuildAcceptCodepointForSource

Function ImFontAtlasBuildAcceptCodepointForSource

include/imgui/imgui_draw.cpp:4511–4518  ·  view source on GitHub ↗

Important! This assume by ImFontConfig::GlyphExcludeRanges[] is a SMALL ARRAY (e.g. <10 entries) Use "Input Glyphs Overlap Detection Tool" to display a list of glyphs provided by multiple sources in order to set this array up.

Source from the content-addressed store, hash-verified

4509// Important! This assume by ImFontConfig::GlyphExcludeRanges[] is a SMALL ARRAY (e.g. <10 entries)
4510// Use "Input Glyphs Overlap Detection Tool" to display a list of glyphs provided by multiple sources in order to set this array up.
4511static bool ImFontAtlasBuildAcceptCodepointForSource(ImFontConfig* src, ImWchar codepoint)
4512{
4513 if (const ImWchar* exclude_list = src->GlyphExcludeRanges)
4514 for (; exclude_list[0] != 0; exclude_list += 2)
4515 if (codepoint >= exclude_list[0] && codepoint <= exclude_list[1])
4516 return false;
4517 return true;
4518}
4519
4520static void ImFontBaked_BuildGrowIndex(ImFontBaked* baked, int new_size)
4521{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected