Fonts: Exposed CompactCache(). Hide ClearCache().

This commit is contained in:
ocornut
2025-02-05 18:25:52 +01:00
parent eb79e3ab3d
commit 8a8d8a7b38
4 changed files with 27 additions and 17 deletions

View File

@@ -3521,7 +3521,7 @@ struct ImFontAtlas
IMGUI_API void RemoveFont(ImFont* font);
IMGUI_API void Clear(); // Clear everything (input fonts, output glyphs/textures)
IMGUI_API void ClearCache(); // Clear cached glyphs and textures. Invalidates all AddCustomRectXXX return values.
IMGUI_API void CompactCache(); // Compact cached glyphs and texture.
// As we are transitioning toward a new font system, we expect to obsolete those soon:
IMGUI_API void ClearInputData(); // [OBSOLETE] Clear input data (all ImFontConfig structures including sizes, TTF data, glyph ranges, etc.) = all the data used to build the texture and fonts.