JUCE 8 text editor last character problem

Screenshot 2024-06-14 at 12.28.37 AM
as you can see, last Chinese character is only half width for selection range and cursor position.

Thanks for reporting we’re aware of some issues with the TextEditor regarding non-ascii characters and are already working on a fix for this but it may take a while before this makes it onto the develop branch as the changes are fairly involved.

is this fixed in 8.0.1?

I’m noticing some similar issues for the CodeEditorComponent on Windows even for ASCII characters.. the cursor position doesn’t seem to calculate character widths correctly and can drift quite far out of position (in either direction) as the line length grows.

Update: looks as though this component originally was using fixed-width text but is no longer doing so, which explains the problem.