mirror of
https://github.com/ocornut/imgui.git
synced 2025-12-24 07:08:54 +00:00
Fonts: Basic heuristic to repack instead of growing. Moved rects count/surface to internals.
This commit is contained in:
@@ -15594,7 +15594,7 @@ static void MetricsHelpMarker(const char* desc)
|
||||
}
|
||||
|
||||
#ifdef IMGUI_ENABLE_FREETYPE
|
||||
namespace ImGuiFreeType { IMGUI_API const ImFontLoader* GetBackendIOForFreeType(); }
|
||||
namespace ImGuiFreeType { IMGUI_API const ImFontLoader* GetFontLoader(); }
|
||||
#endif
|
||||
|
||||
// [DEBUG] List fonts in a font atlas and display its texture
|
||||
@@ -15628,7 +15628,7 @@ void ImGui::ShowFontAtlas(ImFontAtlas* atlas)
|
||||
#endif
|
||||
SameLine();
|
||||
#ifdef IMGUI_ENABLE_FREETYPE
|
||||
const ImFontLoader* loader_freetype = ImGuiFreeType::GetBackendIOForFreeType();
|
||||
const ImFontLoader* loader_freetype = ImGuiFreeType::GetFontLoader();
|
||||
if (RadioButton("FreeType", loader_current == loader_freetype))
|
||||
ImFontAtlasBuildSetupFontLoader(atlas, loader_freetype);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user