View previous topic :: View next topic |
Author |
Message |
Mustard007 Apprentice


Joined: 31 May 2002 Posts: 235 Location: Montreal, Quebec, Canada
|
Posted: Fri Jun 04, 2004 11:49 pm Post subject: Antialiasing font in JAVA apps ???? |
|
|
Hi !
It's possible to have antialiasing font in the JAVA apps /applets ???
The font are so ugly ;o)
I use sun-jdk.
Thanks !! |
|
Back to top |
|
 |
JPMRaptor Guru


Joined: 04 Oct 2002 Posts: 410 Location: Maryland
|
Posted: Sat Jun 05, 2004 12:52 am Post subject: |
|
|
That's probably going to depend a lot on what the Java app does. If it's based on AWT it's using native components for the GUI components and should do whatever your other applications do. If it's based on Swing they the application has to set a special property to get antialiasing. _________________ Underwater photo gallery
New pictures, Oct 2005 |
|
Back to top |
|
 |
Twix Tux's lil' helper


Joined: 14 Aug 2003 Posts: 115 Location: Longueuil, Québec
|
Posted: Sat Jun 05, 2004 1:14 am Post subject: |
|
|
The only Java apps that can do proper antialiasing in Unix are apps using SWT. This library renders the widgets using gtk-2.0.
Example: Eclipse |
|
Back to top |
|
 |
PowerFactor Veteran


Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Sat Jun 05, 2004 1:26 am Post subject: |
|
|
While the fonts can't be antialiased (except with swt) you can switch to font's that are much less ugly than the defaults. Have a look at the $JDK_HOME/jre/lib/font.properties file. Just keep your font choices conservative or you may have problems with some apps. I set it to use the same fonts that java uses on windows. You can use xfontsel to help you figure out the string to put in font.properties for any given font. |
|
Back to top |
|
 |
Mustard007 Apprentice


Joined: 31 May 2002 Posts: 235 Location: Montreal, Quebec, Canada
|
Posted: Sat Jun 05, 2004 3:57 am Post subject: |
|
|
Thanks all !!
Can you send me your font.properties files ? |
|
Back to top |
|
 |
bcore n00b


Joined: 09 Apr 2003 Posts: 59 Location: Toronto
|
Posted: Mon Aug 30, 2004 10:25 pm Post subject: |
|
|
I noticed that the lates NetBeans is able to do AA fonts (as in it AAs the fonts in its editor).. Didn't stop to wonder how though, I'm an eclipse guy.  _________________ MR DOWNY: BISCUIT BRAAAAAAAAAAA
YUO: LOL!!!!! |
|
Back to top |
|
 |
|