Caret is misaligned when entering Japanese in some fonts

Hi, JUCE developers.

After updating to JUCE v8.0.1, a bug was found that when entering Japanese text in some fonts, the Caret position was not displayed correctly on juce::TextEditor.
This also occurs in DemoRunner’s FontsDemo, so please check it out.


My environment is Windows 11 and OS language setting is Japanese.

I have tried several fonts and found the following fonts have the problem.

  • Arial
  • Sans Serif Collection
  • Segoe UI

This does not seem to be happening with the following fonts.

  • Yu Gothic
  • Yu Mincho

Please let me know if you have any other information needed for the survey.

Thanks.

1 Like