RFR: 8240756: [macos] SwingSet2:TableDemo:Printed Japanese characters were garbled [v2]

Toshio Nakamura tnakamura at openjdk.java.net
Thu Oct 21 00:57:59 UTC 2021


On Thu, 17 Jun 2021 09:29:07 GMT, Toshio Nakamura <tnakamura at openjdk.org> wrote:

>> Hi,
>> 
>> Could you review the fix?
>> When non-English characters were printed from JTable on MacOS, CTextPipe.doDrawGlyphs was called by OSXSurfaceData.drawGlyphs. However, CTextPipe seems not support glyph with slot number of composite fonts.
>> 
>> The slot data mask of GlyphVector is 0xff000000. In my environment, Japanese font was loaded at slot 4, and glyph data is like [0x40003e5]. Then, unexpected glyph was drawn.
>
> Toshio Nakamura has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:
> 
>  - 2nd proposal
>  - Revert previous change
>  - Merge branch 'master' into 8240756
>    merge master
>  - 8240756: [macos] SwingSet2:TableDemo:Printed Japanese characters were garbled

Sorry for the long interruption.
I completely revised the fix. The new proposal could be combined the modifications into MacOS specific class.
Please review the latest version.

Tests: tier1, java/awt, and javax.swing on MacOS (BigSur)

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

PR: https://git.openjdk.java.net/jdk/pull/3619



More information about the client-libs-dev mailing list