Browse Source

Update README.md

omar 10 năm trước cách đây
mục cha
commit
315e9941f0
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      README.md

+ 4 - 1
README.md

@@ -37,11 +37,14 @@ Gallery
 ![screenshot 4](/web/examples_02.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. 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;
+```
 ![Japanese screenshot](/web/code_sample_01_jp.png?raw=true)
 ![Japanese screenshot](/web/code_sample_01_jp.png?raw=true)
 
 
 References
 References