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:
parent
de962e83d0
commit
1a31e31ae9
5 changed files with 9 additions and 8 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue