Fonts: added RemoveCustomRect().

+ internally add ImFontAtlasPackReuseRectEntry()
This commit is contained in:
ocornut
2025-06-11 15:56:24 +02:00
parent e9cf3de58f
commit 23dc46c4f8
3 changed files with 22 additions and 12 deletions
+2 -2
View File
@@ -3701,8 +3701,8 @@ IMGUI_API const ImFontLoader* ImFontAtlasGetFontLoaderForStbTruetype();
// Having this also makes it easier to e.g. sort rectangles during repack.
struct ImFontAtlasRectEntry
{
int TargetIndex : 31; // When Used: ImFontAtlasRectId -> into Rects[]. When unused: index to next unused RectsIndex[] slot to consume free-list.
unsigned int Used : 1;
int TargetIndex : 31; // When Used: ImFontAtlasRectId -> into Rects[]. When unused: index to next unused RectsIndex[] slot to consume free-list.
unsigned int Used : 1;
};
// Data available to potential texture post-processing functions