Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8319050

Text/TextFlow.caretShape() and .rangeShape() wrong in RTL orientation

XMLWordPrintable

      When TextFlow is set to RTL node orientation, not only the layout is incorrect (see JDK-8318095) but also

      caretShape() and
      rangeShape()

      methods return incorrect values.

      To reproduce, launch the attached code and click left mouse button to see the caret shape, or right mouse button to see the range shape of the whole text. The paths will also be printed to stdout.

      A similar issue is present in Text.

        1. arabic.html
          0.2 kB
          Andy Goryachev
        2. Screenshot 2023-10-27 at 16.15.25.png
          244 kB
          Andy Goryachev
        3. Screenshot 2023-10-27 at 17.04.12.png
          223 kB
          Andy Goryachev
        4. Screenshot 2024-04-05 at 14.14.02.png
          163 kB
          Andy Goryachev
        5. Screenshot 2024-04-17 at 08.04.55.png
          144 kB
          Andy Goryachev
        6. Text_CaretRangeShape_8319050.java
          4 kB
          Andy Goryachev
        7. Text_CaretRangeShape_8319050-1.java
          4 kB
          Andy Goryachev
        8. TextFlow_CaretRangeShape_8319050.java
          4 kB
          Andy Goryachev
        9. TextFlow_CaretRangeShape_8319050-1.java
          4 kB
          Andy Goryachev

            angorya Andy Goryachev
            angorya Andy Goryachev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: