From 315e9941f0158e3ed3da3489362713a795b04ce2 Mon Sep 17 00:00:00 2001 From: omar Date: Fri, 6 Mar 2015 21:14:40 +0000 Subject: [PATCH] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1ee93913..dc4a2120 100644 --- a/README.md +++ b/README.md @@ -37,11 +37,14 @@ Gallery ![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: - ``` ImGuiIO& io = ImGui::GetIO(); 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) References