Fonts: Added back support for AddCustomRectFontGlyph()

Legacy path naturally works.
This commit is contained in:
ocornut
2025-06-11 15:45:08 +02:00
parent 953ce90d27
commit a509790a1c
3 changed files with 48 additions and 85 deletions
+1 -1
View File
@@ -3581,7 +3581,7 @@ struct ImFontAtlas
// - Read docs/FONTS.md for more details about using colorful icons.
// - Note: this API may be redesigned later in order to support multi-monitor varying DPI settings.
IMGUI_API int AddCustomRectRegular(int width, int height);
IMGUI_API int AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset = ImVec2(0, 0));
IMGUI_API int AddCustomRectFontGlyph(ImFont* font, ImWchar codepoint, int width, int height, float advance_x, const ImVec2& offset = ImVec2(0, 0));
IMGUI_API ImFontAtlasCustomRect* GetCustomRectByIndex(int index);
// [Internal]