Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Antialiasing font in JAVA apps ????
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Mustard007
Apprentice
Apprentice


Joined: 31 May 2002
Posts: 235
Location: Montreal, Quebec, Canada

PostPosted: Fri Jun 04, 2004 11:49 pm    Post subject: Antialiasing font in JAVA apps ???? Reply with quote

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
View user's profile Send private message
JPMRaptor
Guru
Guru


Joined: 04 Oct 2002
Posts: 410
Location: Maryland

PostPosted: Sat Jun 05, 2004 12:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Twix
Tux's lil' helper
Tux's lil' helper


Joined: 14 Aug 2003
Posts: 115
Location: Longueuil, Québec

PostPosted: Sat Jun 05, 2004 1:14 am    Post subject: Reply with quote

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
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Sat Jun 05, 2004 1:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Mustard007
Apprentice
Apprentice


Joined: 31 May 2002
Posts: 235
Location: Montreal, Quebec, Canada

PostPosted: Sat Jun 05, 2004 3:57 am    Post subject: Reply with quote

Thanks all !!

Can you send me your font.properties files ?
Back to top
View user's profile Send private message
bcore
n00b
n00b


Joined: 09 Apr 2003
Posts: 59
Location: Toronto

PostPosted: Mon Aug 30, 2004 10:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum