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:

![Screenshot 2024-06-06 at 09 50 
35](https://github.com/openjdk/jfx/assets/107069028/1b1162ed-51d6-4fa1-ae90-12225ed00b82)

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1468#issuecomment-2152985278

Reply via email to