mirror of
https://github.com/ocornut/imgui.git
synced 2025-04-14 17:13:46 +00:00
Merge branch 'master' of https://github.com/ocornut/imgui
This commit is contained in:
commit
6927d5872e
1 changed files with 6 additions and 2 deletions
|
@ -36,9 +36,13 @@ Gallery
|
|||

|
||||

|
||||
|
||||
ImGui can load TTF fonts. UTF-8 is supported for text display and input. Here using Arial Unicode font to display Japanese:
|
||||
ImGui can load TTF fonts. UTF-8 is supported for text display and input. Here using Arial Unicode font to display Japanese. Initialize custom font with:
|
||||
|
||||

|
||||
```
|
||||
ImGuiIO& io = ImGui::GetIO();
|
||||
io.Fonts->AddFontFromFileTTF("ArialUni.ttf", 18.0f, io.Fonts->GetGlyphRangesJapanese());
|
||||
```
|
||||

|
||||
|
||||
References
|
||||
----------
|
||||
|
|
Loading…
Add table
Reference in a new issue