JDK-6797728 : Enable special code in the JRE to allow JavaFX runtime to treat fonts its own way
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
Enable special code in the JRE to allow JavaFX runtime to treat fonts the way it wants to. i.e disable hinting or to special hint/font path processing
Note that this fix was not in fact functional in JDK 7 until b132 because of
bug 7020444: Bug in fix for 6797728 : used doAA instead of aaType
A better compromise solution is to disable gridfitting if FM==ON and AA=ON
By tying it to fm==on we
1) Don't need new API, not even a private one
2) Get linear metrics in the event we have text which does actually
3) Are only affecting a use case (FM==ON) which doesn't crop up in
Swing apps, or most anything else, so they aren't affected.
By tying it to AA=ON, we are constraining it to the case where
disabling gridfitting produces useful results
Also it allows it to be used more precisely in a natural 2D way
by setting it for a particular graphics and there are no consequences
for any other usage in the JRE.
I think the request is for internal API to enable the same.
After fix for 6774578 we do have way to disable hinting globally:
Property name is "sun.java2d.font.experimental.nogridfitting" and the way to use it is to pass:
Environment variable is JAVA2D_EXPERIMENTAL_NOGRIDFITTING. Value does not matter, it is is set then grid fitting will be disabled.