1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-11 00:04:24 +00:00

Fonts: Added back support for AddCustomRectFontGlyph()

Legacy path naturally works.
This commit is contained in:
ocornut 2025-01-13 20:33:36 +01:00
parent 953ce90d27
commit a509790a1c
3 changed files with 48 additions and 85 deletions

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]