mirror of
https://github.com/ocornut/imgui.git
synced 2026-02-18 01:18:37 +00:00
Update README.md
This commit is contained in:
@@ -36,7 +36,14 @@ Gallery
|
||||

|
||||

|
||||
|
||||
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());
|
||||
|
||||
```
|
||||

|
||||
|
||||

|
||||
|
||||
|
||||
Reference in New Issue
Block a user