RFR: 8304831: TextFlow.hitTest.insertionIndex incorrect with surrogate pairs
Karthik P K
kpk at openjdk.org
Thu Apr 27 06:07:57 UTC 2023
On Wed, 26 Apr 2023 19:47:43 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
> > I'm also seeing same issue
>
> I wonder what could be the difference? text size?
Text size is one difference.
One more observation I made is that if the emojis and text in the TextFlow are separate text nodes then this fix works. If one text node contains combination of text and emojis then it is failing.
Also the fix does not work with the first emoji in the following picture but works with second one.
<img width="30" alt="image" src="https://user-images.githubusercontent.com/26969459/234771077-a5e59e05-c520-4b44-b0ff-0375f7832e48.png">
So looks like the the combination of different text and emojis are giving different results. I will check these and resume work on this PR after the test sprint.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1091#issuecomment-1524768053
More information about the openjfx-dev
mailing list