Re: How to turn off Antialiasing in 1.6?



Alia wrote:
I have a need to turn anti-aliasing _off_ for certain jlabels.
My 1.4 code no longer works in 1.6 (setting rendering hints).

I googled around and found various ways to turn antialiasing on, but I have the opposite problem and reversing the examples I have found doesn't seem to work.

Does anyone have any example code that will let me turn anti-aliasing off on a jlabel (without drawing the text myself)?

-Alia


*from the soon to be posted updated 2D FAQ :

Q. How can I specify the text antialiasing/font smoothing settings to be used by Swing in applications on Java SE 6?

A. This is generally is a question from users of KDE or Windows 2000 who would like to use LCD subpixel text. There's no programmatic way to do it in Java SE 6 (However if you know what you want you can set a system property :

java -Dawt.useSystemAAFontSettings=lcd which request to use LCD subpixel text in the most common subpixel configuration There are a few more useful values for this property as follows :
o "false" corresponds to disabling font smoothing on the desktop.
o ""on" corresponds to Gnome Best shapes/Best contrast (no equivalent Windows desktop setting)
o ""gasp" corresponds to Windows "Standard" font smoothing (no equivalent Gnome desktop setting)
o ""lcd" corresponds to Gnome's "subpixel smoothing" and Windows "ClearType"

Posted by: philrace on February 26, 2006 at 05:35 PM

*
PS also see : http://java.sun.com/javase/6/docs/guide/2d/flags.html#aaFonts

--

Knute Johnson
email s/nospam/knute/

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
.



Relevant Pages

  • Re: Reset account lockout counter after
    ... The corresponding lockoutObservationWindow attribute of the domain object is Integer8. ... 99,999 minutes corresponds to a value of -59,999,400,000,000 for the lockoutObservationWindow attribute. ... You can check this with ADSI Edit. ... ADSI Edit is part of the Windows 2000 Support Tools on the Windows 2000 Server CD. ...
    (microsoft.public.windows.server.active_directory)
  • Font Smoothing & Image Scaling
    ... Windows font smoothing - standard ... smoothing (standard) switched on in Windows. ... I have 5 small png pictures that I ...
    (microsoft.public.powerpoint)
  • RE: Display problems
    ... Check if font smoothing is enabled: right click on the desktop, ... > I just bought a new laptop with Windows XP Family Edition and I installed ... > underneath), e.g. desktop icons, "start" name at the bottom left, window ... > like a problem coming from Windows. ...
    (microsoft.public.windowsxp.general)
  • RE: Font Smoothing & Image Scaling
    ... > Windows font smoothing - standard ... > smoothing (standard) switched on in Windows. ... > put them onto the same slide. ...
    (microsoft.public.powerpoint)
  • Font smoothing in WMP 10
    ... Windows OS level Display preferences to keep it turned off. ... with font smoothing turned off in the Control Panel - ... look at the "Classic" skin. ...
    (microsoft.public.windowsmedia)