[OpenJDK 2D-Dev] RFR: 8214481: freetype path does not disable TrueType hinting with AA+FM hints

Phil Race philip.race at oracle.com
Wed Nov 27 20:00:00 UTC 2019


Bug: https://bugs.openjdk.java.net/browse/JDK-8214481
Webrev: http://cr.openjdk.java.net/~prr/8214481/

This is a small change  so that when the RenderingHints for
text antialiasing is specified together with fractional metrics hints,
JDK asks freetype to disable hinting.

This is what JDK7 and 8 used to do with the closed code and it appears
apps have gotten used to it.

It helps animation and makes sense to linearly scale the advances
and the images.

A regression test would not tell you much here except that the image
rendering is probably not the same. There's no way to confirm it is 
unhinted.
And platforms such as Mac don't hint anyway .. so it is a no-op there as 
well
as at many sizes of even hinted fonts.

-phil.




More information about the 2d-dev mailing list