JDK-4808569 : RFE: windows desktop properties should include font smoothing settings
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2003-01-27
  • Updated: 2003-05-25
  • Resolved: 2003-05-25
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.
5.0 tigerFixed
Related Reports
Relates :  
All versions of MS windows support a desktop "font smoothing" setting.
This controls how Windows anti-aliases text. In addition XP allows a user
to choose the font smoothing algorithm, one value being the standard setting,
the other being appropriate for LCD display technology.

To properly emulate the L&F of the native desktop, Swing needs to read
and obey these settings, to the fullest extent that the JDK can support.

I believe AWT needs to provide this information via the desktop
properties and Swing read it and use it to set the TEXT_ANTIALIASING hint on
all Swing component graphics.


Note that theoretically this ought to be a per-monitor (screen) setting
as LCD text optimisation isn't necessarily wanted if only one monitor is
an LCD, but Windows doesn't appear to set it that way. Its global to the
desktop. This seems like something that may change in the future.

Also we see that the Linux Gnome 2.0 desktop preferences font chooser
allows you to similarly choose between A-A settings, and this should also
be made available for Swing to read for the GTK L&F. For some reason
the Solaris gnome 2.0 doesn't yet support this but that should not prevent
its implementation since its already there on the Linux version.

###@###.### 2003-01-27

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger tiger-b08

EVALUATION We should do this for Tiger. Note: the font smoothing property is "win.text.fontSmoothingOn" and is one of the properties that don't trigger a WM_SETTINGCHANGE on win98. The new property we need is font smoothing type. The Swing RFE (for usage of this property) is 4808567. Commit to fix in Tiger. ###@###.### 2003-01-27 Note: we really ought to have these properties on Gnome as well. ###@###.### 2003-01-27 For Windows, there are three desktop properties listed: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/systemparametersinfo.asp SPI_GETFONTSMOOTHING SPI_GETFONTSMOOTHINGTYPE SPI_GETFONTSMOOTHINGCONTRAST Perhaps we should get all three and call them "win.text.fontSmoothingOn" "win.text.fontSmoothingType" "win.text.fontSmoothingContrast" ###@###.### 2003-01-28