This work depends on:
https://github.com/ocornut/imgui/compare/master...xuboying:imgui:feature-cjk-wrap
As discussed in https://github.com/ocornut/imgui/issues/8990, this PR updates the ImGui test suite to support studying CJK word‑wrapping behavior.
Added test cases
widgets_text_wrapped_cjk_legacy_headlesswidgets_text_wrapped_cjk_zh_cn_mixed_char_with_pronunciation_mark_not_allow_at_headwidgets_text_wrapped_cjk_zh_cn_mixed_char_with_pronunciation_mark_not_allow_at_tailwidgets_text_wrapped_cjk_zh_cn_mixed_with_english
Helper
cjk_wrap_test_helper(requiresIMGUI_TEST_ENGINE_ENABLE_STD_FUNCTION)
Notes
The CJK wrapping rules are generally straightforward, with the main complexity coming from handling pronunciation marks.
In the screenshots below, the yellow line indicates the wrap width, and the green rectangle shows the actual wrapped region.
By the way, I added a HiDPI manifest to my local build to avoid blurry text (ideally every Win32 application should ship with one by default). As expected, the text became quite small afterward, so I set the Font DPI Scale to 2, which matches my monitor. However, this value resets every time the test engine closes — possibly a TE bug.