You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: imgui.cpp
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -353,6 +353,7 @@ CODE
353
353
When you are not sure about a old symbol or function name, try using the Search/Find function of your IDE to look for comments or references in all imgui files.
354
354
You can read releases logs https://github.com/ocornut/imgui/releases for more details.
355
355
356
+
- 2019/11/21 (1.74) - ImFontAtlas::AddCustomRectRegular() now requires an ID larger than 0x110000 (instead of 0x10000) to conform with supporting Unicode planes 1-16 in a future update. ID below 0x110000 will now assert.
356
357
- 2019/11/19 (1.74) - renamed IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS to IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS for consistency.
357
358
- 2019/11/19 (1.74) - renamed IMGUI_DISABLE_MATH_FUNCTIONS to IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS for consistency.
358
359
- 2019/10/22 (1.74) - removed redirecting functions/enums that were marked obsolete in 1.52 (October 2017): Begin() (5 arguments signature), IsRootWindowOrAnyChildHovered(), AlignFirstTextHeightToWidgets(), SetNextWindowPosCenter(), ImFont::Glyph. See docs/Changelog.txt or grep this log for details and new names, or see how they were implemented until 1.73.
@@ -1061,7 +1062,7 @@ ImGuiIO::ImGuiIO()
1061
1062
// - on Windows you can get those using ToAscii+keyboard state, or via the WM_CHAR message
unsignedshort X, Y; // Output // Packed position in Atlas
2063
-
float GlyphAdvanceX; // Input // For custom font glyphs only (ID<0x10000): glyph xadvance
2064
-
ImVec2 GlyphOffset; // Input // For custom font glyphs only (ID<0x10000): glyph display offset
2065
-
ImFont* Font; // Input // For custom font glyphs only (ID<0x10000): target font
2065
+
float GlyphAdvanceX; // Input // For custom font glyphs only (ID < 0x110000): glyph xadvance
2066
+
ImVec2 GlyphOffset; // Input // For custom font glyphs only (ID < 0x110000): glyph display offset
2067
+
ImFont* Font; // Input // For custom font glyphs only (ID < 0x110000): target font
2066
2068
ImFontAtlasCustomRect() { ID = 0xFFFFFFFF; Width = Height = 0; X = Y = 0xFFFF; GlyphAdvanceX = 0.0f; GlyphOffset = ImVec2(0,0); Font = NULL; }
2067
2069
boolIsPacked() const { return X != 0xFFFF; }
2068
2070
};
@@ -2142,8 +2144,8 @@ struct ImFontAtlas
2142
2144
// You can also request your rectangles to be mapped as font glyph (given a font + Unicode point),
2143
2145
// so you can render e.g. custom colorful icons and use them as regular glyphs.
2144
2146
// Read misc/fonts/README.txt for more details about using colorful icons.
2145
-
IMGUI_API intAddCustomRectRegular(unsignedint id, int width, int height); // Id needs to be >= 0x10000. Id >= 0x80000000 are reserved for ImGui and ImDrawList
2146
-
IMGUI_API intAddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset = ImVec2(0,0)); // Id needs to be < 0x10000 to register a rectangle to map into a specific font.
2147
+
IMGUI_API intAddCustomRectRegular(unsignedint id, int width, int height); // Id needs to be >= 0x110000. Id >= 0x80000000 are reserved for ImGui and ImDrawList
2148
+
IMGUI_API intAddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset = ImVec2(0,0)); // Id needs to be < 0x110000 to register a rectangle to map into a specific font.
IM_ASSERT(IndexLookup.Size > 0); // Currently this can only be called AFTER the font has been built, aka after calling ImFontAtlas::GetTexDataAs*() function.
0 commit comments