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

Trailing space not rendering correctly in TextFlow in RTL mode

XMLWordPrintable

    • generic
    • generic

      Trailing space present in a Text node is considered as RTL text even when it is present in LTR text if the node orientation is RTL. In this case an extra space is rendered in the beginning.
      If there is any other character like ":" before the space, the space is rendered between ":" and first character of LTR text and an extra space is rendered before the ":"
      Screenshots and code to reproduce the issue is attached.

      Expectation:
      The trailing space should not be rendered between ":" and first character of LTR text and extra space should not be rendered before ":" similar to how it is handled in HTML. Example is attached.

        1. Screenshot 2024-04-17 at 08.04.55.png
          144 kB
          Karthik P K
        2. Screenshot 2024-04-18 at 12.24.15 PM.png
          215 kB
          Karthik P K
        3. Screenshot 2024-04-18 at 12.24.35 PM.png
          231 kB
          Karthik P K
        4. TextFlowExtraSpaceSample.java
          4 kB
          Karthik P K

            angorya Andy Goryachev
            kpk Karthik P K
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: