RFR: 8260931: Implement JEP 382: New macOS Rendering Pipeline [v13]
Scott Palmer
swpalmer at gmail.com
Fri Mar 12 03:59:56 UTC 2021
> On Mar 11, 2021, at 9:53 PM, Sergey Bylokhov <serb at openjdk.java.net> wrote:
>
> On Fri, 12 Mar 2021 02:29:04 GMT, Jayathirth D V <jdv at openjdk.org> wrote:
>
>>> src/java.desktop/macosx/classes/sun/java2d/metal/MTLSurfaceData.java line 323:
>>>
>>>> 321: * more code just to support a few uncommon cases.
>>>> 322: */
>>>> 323: public boolean canRenderLCDText(SunGraphics2D sg2d) {
>>>
>>> Just curious, can we render LCD on 10.14+ via metal? Does it work fine?
>>
>> Yes Sergey it works fine in 10.14+ systems via metal. Most of the JCK manual tests use LCD text on UI Components and it is recently verified in 10.14+ systems for EA10.
>
> Ok, for some reason I thought that the new macOS stopped providing LCD glyphs.
>
Are the glyphs different or just the way they are rasterized?
Newer versions of macOS don’t do LCD text and have gone back to plain grey-scale anti-aliasing.
Java 2D should default to NOT doing LCD anti-aliasing for text on macOS if it wants to fit in with the look of native applications.
(I’m not sure if that applies to non-retina displays.)
Scott
More information about the build-dev
mailing list