On Thu, 6 Jun 2024 16:46:39 GMT, Karthik P K <k...@openjdk.org> wrote:
>> 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. > > Karthik P K has updated the pull request incrementally with one additional > commit since the last revision: > > Typo fix Found another problem: the offset of the whole string appears to be incorrect after the fix:  ------------- PR Comment: https://git.openjdk.org/jfx/pull/1468#issuecomment-2152985278