TextLayout: incorrect placement of Arabic diacritic marks

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: jfx24
    • Component/s: javafx
    • None
    • Environment:

      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)

            Assignee:
            Philip Race
            Reporter:
            Andy Goryachev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: