Re: How to turn off Antialiasing in 1.6?
- From: Knute Johnson <nospam@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 25 Jan 2008 17:32:22 -0800
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
.
- References:
- How to turn off Antialiasing in 1.6?
- From: Alia
- How to turn off Antialiasing in 1.6?
- Prev by Date: How to turn off Antialiasing in 1.6?
- Next by Date: Re: How to turn off Antialiasing in 1.6?
- Previous by thread: How to turn off Antialiasing in 1.6?
- Next by thread: Re: How to turn off Antialiasing in 1.6?
- Index(es):
Relevant Pages
|