mirror of
https://github.com/Drezil/imgui.git
synced 2025-04-14 15:13:59 +00:00
Update README.md
This commit is contained in:
parent
e269125c3a
commit
315e9941f0
@ -37,11 +37,14 @@ 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());
|
||||||
```
|
```
|
||||||
|
For Microsoft IME, pass your HWND to enable IME positioning:
|
||||||
|
```
|
||||||
|
io.ImeWindowHandle = my_hwnd;
|
||||||
|
```
|
||||||

|

|
||||||
|
|
||||||
References
|
References
|
||||||
|
Loading…
x
Reference in New Issue
Block a user