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

(Breaking) Fonts: removed ImFontConfig::GlyphExtraSpacing option which seems largely obsolete and unused. (#242)

This commit is contained in:
ocornut 2025-02-03 17:55:35 +01:00
parent de962e83d0
commit 1a31e31ae9
5 changed files with 9 additions and 8 deletions

View file

@ -41,6 +41,9 @@ HOW TO UPDATE?
Breaking changes:
- Removed ImFontConfig::GlyphExtraSpacing option which seems largely obsolete and
unused. If you were using this please report it! (#242).
Other changes:
- Fixed IsItemDeactivatedAfterEdit() signal being broken for Checkbox(),

View file

@ -110,7 +110,7 @@ ImGui::PopFont();
**For advanced options create a ImFontConfig structure and pass it to the AddFont() function (it will be copied internally):**
```cpp
ImFontConfig config;
config.GlyphExtraSpacing.x = 1.0f;
config.RasterizerDensity = 2.0f;
ImFont* font = io.Fonts->AddFontFromFileTTF("font.ttf", size_pixels, &config);
```