Fonts: encode additional data in ImFontAtlasRectId to detect invalid id + added Rects debug browser.

This commit is contained in:
ocornut
2025-06-11 15:56:39 +02:00
parent 0436fba13c
commit ed2bb2cff0
4 changed files with 94 additions and 17 deletions
+1 -1
View File
@@ -3509,7 +3509,7 @@ struct ImFontGlyphRangesBuilder
IMGUI_API void BuildRanges(ImVector<ImWchar>* out_ranges); // Output new ranges
};
// An identifier to a rectangle in the atlas. -1 when invalid.
// An opaque identifier to a rectangle in the atlas. -1 when invalid.
// The rectangle may move and UV may be invalidated, use GetCustomRect() to retrieve it.
typedef int ImFontAtlasRectId;
#define ImFontAtlasRectId_Invalid -1