-
Enhancement
-
Resolution: Fixed
-
P4
-
1.4.2
-
None
-
beta
-
generic
-
generic
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.
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.
- relates to
-
JDK-4502804 FontSmoothing/AntiAlias not utilized by default despite OS setting
- Resolved
-
JDK-4726365 RFE: Java 2D to support LCD optimized anti-aliased text (sub-pixel resolution)
- Resolved