mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-12 02:00:58 +01:00
Update README.md
This commit is contained in:
parent
819c114c34
commit
1d7b0084cb
@ -39,14 +39,12 @@ Gallery
|
|||||||
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:
|
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();
|
ImGuiIO& io = ImGui::GetIO();
|
||||||
io.Fonts->AddFontFromFileTTF("ArialUni.ttf", 18.0f, io.Fonts->GetGlyphRangesJapanese());
|
io.Fonts->AddFontFromFileTTF("ArialUni.ttf", 18.0f, io.Fonts->GetGlyphRangesJapanese());
|
||||||
|
|
||||||
```
|
```
|
||||||
![Japanese screenshot](/web/code_sample_01_jp.png?raw=true)
|
![Japanese screenshot](/web/code_sample_01_jp.png?raw=true)
|
||||||
|
|
||||||
![utf-8 screenshot](/web/utf8_sample_01.png?raw=true)
|
|
||||||
|
|
||||||
References
|
References
|
||||||
----------
|
----------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user