JDK-5057760 : RFE: Java2D font anti-aliasing should support TrueType's gasp table
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-06-04
  • Updated: 2017-05-16
  • Resolved: 2005-05-31
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.

To download the current JDK release, click here.
JDK 6
6 betaFixed
Related Reports
Relates :  
Relates :  
Description
TrueType fonts contain a table (the 'gasp' table) which specifies the
font designer's recommendations for which point sizes of a font
should use monochrome bitmaps, which sizes should be hinted
and which sizes smoothed (anti-aliased), and combinations thereof.

These recommendations are typically based on the font designer
knowing which sizes contain tuned embedded bitmaps or sufficiently
high quality hints that smoothing would produce less readable
results.

It would be a useful augmentation to the Java 2D text anti-aliasing
hint values to provide a way for an application to specify that this
behaviour of following the font designer's recommendation is preferred.

A particular application of this would be in supporting the Swing
Windows L&F as the Windows desktop's "Standard" font smoothing setting
uses this approach. (A careful look at a windows desktop with this
setting will reveal that most fonts at typical GUI point sizes are
not A-Aed, since the font recommends against it).

Consideration will have to be given to selecting a single policy
for a composite font, since its possible the different physical
components contain different recommendations.

Also the FontRenderContext class would need to be made capable of
expressing this setting.

Comments
EVALUATION As per description. See also 4726365: RFE: Java 2D to support LCD optimized anti-aliased text (sub-pixel resolution) and the corresponding Swing RFE's : 4502804: FontSmoothing/AntiAlias not utilized by default despite OS setting and 4871297: Win L&F: XP Look and Feel does not show ClearType anti-aliasing ###@###.### 2004-06-04 ============================
04-06-2004