1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-11-24 15:50:25 +01:00

Update README.md

This commit is contained in:
omar 2015-02-26 19:13:32 +00:00
parent 7591252607
commit 819c114c34

View File

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