Skip to content

Conversation

alektron
Copy link
Contributor

This fixes two bugs related to UTF-8.

The first bug was in UTF-8 decoding and prevented certain multi byte characters from getting added to the font atlas correctly.
This issue was first noticed when trying to type a german 'Ü' into the target's Arguments field and only empty space showed up.
This is exactly the same as #184.
Sorry for the duplication but the rest of this pull request only really makes sense with this change.

The second bug is not so much a bug but more the missing implementation for UI_EventDeltaUnit_Char.
It now properly adjusts the delta to correctly jump over multi byte character in both directions.
Without this fix e.g. the previously mentioned 'Ü' acted like two characters when trying to move the cursor.

There still seems to be outstanding issues with rendering multi byte characters where monospaced font is used. For example the watch window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant