forked from PintaProject/Pinta
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial work on fixing some text tool issues with Unicode characters.
There currently are assumptions that each char is a single visible character, which is not the case for surrogate pairs, combining sequences, etc This change updates the left / right key handlers to use the StringInfo class to advance through text elements rather than chars. The other key hanlders will need similar changes. Also adjusted the naming of IndexToPosition() and related methods to make it clear that they are dealing with UTF8 byte indices, not (UTF16) char indices or text element indices. Bug: 1422445
- Loading branch information
1 parent
f5be9d4
commit 1c57a84
Showing
3 changed files
with
69 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters