Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6797728
Votes 0
Synopsis Enable special code in the JRE to allow JavaFX runtime to treat fonts its own way
Category java:classes_2d
Reported Against
Release Fixed , 6u14(b03) (Bug ID:2173416)
State 5-Cause Known, request for enhancement
Priority: 2-High
Related Bugs 6774578 , 6821348
Submit Date 26-JAN-2009
Description
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
Posted Date : 2009-01-26 17:55:08.0
Work Around
N/A
Evaluation
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:
  -Dsun.java2d.font.experimental.nogridfitting=true

Environment variable is JAVA2D_EXPERIMENTAL_NOGRIDFITTING. Value does not matter, it is is set then grid fitting will be disabled.
Posted Date : 2009-01-27 12:32:11.0

I think the request is for internal API to enable the same.
Posted Date : 2009-02-09 22:40:55.0

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
scale linearly.
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.
Posted Date : 2009-02-20 21:05:40.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang