[10] Review request: 8148939: Font rendering artifacts on Adobe.com

Arunprasad Rajkumar arunprasad.rajkumar at oracle.com
Tue Dec 5 14:38:30 UTC 2017


Hi Kevin, Phil,

Please review the following fix related to LCD text rendering issue in Windows,

Bug: https://bugs.openjdk.java.net/browse/JDK-8148939
Patch: http://cr.openjdk.java.net/~arajkumar/8148939/webrev

Root cause:

Padding is added for "left, bottom and right" parts to avoid LCD text rendering artifacts, but “top” part is ignored. Adding a single pixel padding fixes the issue. 

Issue is seen only on Windows when enabling LCD font smoothing(which is enabled by default for WebView).

I tried to reproduce the problem using “Text/Label” node, but I couldn't. Probably because “Text/Label” node calculates NGText bounding box differently, WebView uses "NGText.getShape().getBounds()”.

Thanks,
Arun


More information about the openjfx-dev mailing list