Browse Source

Merge branch 'master' of https://github.com/ocornut/imgui

pull/147/head
ocornut 10 years ago
parent
commit
6927d5872e
  1. 8
      README.md

8
README.md

@ -36,9 +36,13 @@ Gallery
![screenshot 4](/web/test_window_04.png?raw=true)
![screenshot 4](/web/examples_02.png?raw=true)
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:
![utf-8 screenshot](/web/utf8_sample_01.png?raw=true)
```
ImGuiIO& io = ImGui::GetIO();
io.Fonts->AddFontFromFileTTF("ArialUni.ttf", 18.0f, io.Fonts->GetGlyphRangesJapanese());
```
![Japanese screenshot](/web/code_sample_01_jp.png?raw=true)
References
----------

Loading…
Cancel
Save