The issue is specific to Mac. The glyph positions returned from native side for complex text is not handled in the text render logic. This issue is observed only when trailing spaces are present along with LTR text mixed with RTL text (Example: "Arabic: العربية").
Made changes in `getPosX` of `TextRun` class to handle negative values. Tested the changes manually with the sample code present in the bug and using the MonkeyTester. ------------- Commit messages: - Fix render issue - Fix text render issue Changes: https://git.openjdk.org/jfx/pull/1468/files Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1468&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8330559 Stats: 7 lines in 1 file changed: 7 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jfx/pull/1468.diff Fetch: git fetch https://git.openjdk.org/jfx.git pull/1468/head:pull/1468 PR: https://git.openjdk.org/jfx/pull/1468