RFR: 8330559: Trailing space not rendering correctly in TextFlow in RTL mode

Karthik P K kpk at openjdk.org
Thu Jun 6 14:15:09 UTC 2024


On Fri, 31 May 2024 14:39:00 GMT, Karthik P K <kpk at 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.

Fixed the issue in `CTGlyphLayout`. 
@andy-goryachev-oracle , @hjohn please re review

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

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


More information about the openjfx-dev mailing list