Integrated: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation

Karthik P K kpk at openjdk.org
Tue Mar 5 04:06:56 UTC 2024


On Tue, 9 Jan 2024 07:31:51 GMT, Karthik P K <kpk at openjdk.org> wrote:

> In the `getHitInfo()` method of PrismTextLayout, RTL node orientation conditions were not considered, hence hit test values such as character index and insertion index values were incorrect.
> 
> Added checks for RTL orientation of nodes and  fixed the issue in `getHitInfo()` to calculate correct hit test values.
> 
> Added system tests to validate the changes.

This pull request has now been integrated.

Changeset: 66d96818
Author:    Karthik P K <kpk at openjdk.org>
URL:       https://git.openjdk.org/jfx/commit/66d96818413f8ce5518cc20cff848eacd1a2d56c
Stats:     1166 lines in 10 files changed: 1068 ins; 66 del; 32 mod

8319844: Text/TextFlow.hitTest() is incorrect in RTL orientation

Co-authored-by: John Hendrikx <jhendrikx at openjdk.org>
Reviewed-by: angorya, jhendrikx

-------------

PR: https://git.openjdk.org/jfx/pull/1323


More information about the openjfx-dev mailing list