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

Karthik P K kpk at openjdk.org
Tue Jan 9 07:36:46 UTC 2024


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.

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

Commit messages:
 - Fix rtl text hittest issue

Changes: https://git.openjdk.org/jfx/pull/1323/files
 Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1323&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8319844
  Stats: 1018 lines in 5 files changed: 980 ins; 10 del; 28 mod
  Patch: https://git.openjdk.org/jfx/pull/1323.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/1323/head:pull/1323

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


More information about the openjfx-dev mailing list