United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-5057760 RFE: Java2D font anti-aliasing should support TrueType's gasp table
JDK-5057760 : RFE: Java2D font anti-aliasing should support TrueType's gasp table

Details
Type:
Enhancement
Submit Date:
2004-06-04
Status:
Resolved
Updated Date:
2005-05-31
Project Name:
JDK
Resolved Date:
2005-05-31
Component:
client-libs
OS:
generic
Sub-Component:
2d
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.2
Fixed Versions:

Related Reports
Relates:
Relates:

Sub Tasks

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
============================
                                     
2004-06-04



Hardware and Software, Engineered to Work Together