Fonts: Adding references to the fact that .OTF fonts are supported (but haven't renamed the entry points)

This commit is contained in:
omar
2017-08-14 11:29:54 +08:00
parent 41076188ca
commit 8c61a4eb4c
4 changed files with 14 additions and 13 deletions

View File

@ -448,7 +448,7 @@
Depending on your application logic it may or not be inconvenient. You might want to track which key-downs were for ImGui (e.g. with an array of bool) and filter out the corresponding key-ups.)
Q: How can I load a different font than the default? (default is an embedded version of ProggyClean.ttf, rendered at size 13)
A: Use the font atlas to load the TTF file you want:
A: Use the font atlas to load the TTF/OTF file you want:
ImGuiIO& io = ImGui::GetIO();
io.Fonts->AddFontFromFileTTF("myfontfile.ttf", size_in_pixels);