Font: Moved functions to internal block (not enforced). Made ConfigData pointer const. Added link to stb's notes.

This commit is contained in:
omar
2019-02-13 18:21:21 +01:00
parent fcdf704dfa
commit 57a586b4f1
3 changed files with 13 additions and 13 deletions

View File

@ -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);