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

TextLayout: incorrect placement of Arabic diacritic marks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx24
    • javafx
    • None
    • macOS 15.3.2 on M1

      The issue surfaced during code review https://github.com/openjdk/jfx/pull/1735

      Certain Arabic diacritic marks are not rendered at the right position in JavaFX (compare with Swing JTextField/JTextArea and MS Word).
      The issue is present in both RTL and LTR node orientation.

      The same font is MS Word renders the marks correctly.

      The text used for testing is السَّلَامُ عَلَيْكُمْ
      \u0627\u0644\u0633\u0651\u064e\u0644\u064e\u0627\u0645\u064f \u0639\u064e\u0644\u064e\u064a\u0652\u0643\u064f\u0645\u0652

      (one can use the Monkey Tester Tools -> JTextArea/JTextField Embedded in SwingNode and Tools -> Native to ASCII tools for testing)

            kcr Kevin Rushforth
            angorya Andy Goryachev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: