|
@@ -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();
|
|
|
|
- io.Fonts->AddFontFromFileTTF("ArialUni.ttf", 18.0f, io.Fonts->GetGlyphRangesJapanese());
|
|
|
|
|
|
+ImGuiIO& io = ImGui::GetIO();
|
|
|
|
+io.Fonts->AddFontFromFileTTF("ArialUni.ttf", 18.0f, io.Fonts->GetGlyphRangesJapanese());
|
|
|
|
|
|
```
|
|
```
|
|

|
|

|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
References
|
|
References
|
|
----------
|
|
----------
|
|
|
|
|