mirror of
https://github.com/ocornut/imgui.git
synced 2026-02-02 03:40:06 +00:00
Font: Moved functions to internal block (not enforced). Made ConfigData pointer const. Added link to stb's notes.
This commit is contained in:
parent
fcdf704dfa
commit
57a586b4f1
3 changed files with 13 additions and 13 deletions
|
|
@ -805,9 +805,9 @@ CODE
|
|||
|
||||
// Options
|
||||
ImFontConfig config;
|
||||
config.OversampleH = 3;
|
||||
config.OversampleH = 2;
|
||||
config.OversampleV = 1;
|
||||
config.GlyphOffset.y -= 2.0f; // Move everything by 2 pixels up
|
||||
config.GlyphOffset.y -= 1.0f; // Move everything by 1 pixels up
|
||||
config.GlyphExtraSpacing.x = 1.0f; // Increase spacing between characters
|
||||
io.Fonts->AddFontFromFileTTF("myfontfile.ttf", size_pixels, &config);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue