Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 28th November 2009, 05:28 PM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,462
linuxfedorafirefox
netbeans has bad fonts in Kde4

I want to improve the ugly fonts in netbeans 6.7.1 on Fedora 12. I tried adding this to the start options:

--laf com.sun.java.swing.plaf.gtk.GTKLookAndFeel

via the netbeans.conf

from some posted hints on the internet but it doesn't seem to help. I'm using the latest KDE4 (4.3.3-3) on Fedora 12 and openjdk
Code:
$> java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.6) (fedora-33.b16.fc12-x86_64)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode) .
I've confirmed the --laf option is being passed to the netbeans by running
ps ax | grep netbeans

and I see it on the option list to the JVM for netbeans. I suspect my option above only works well on Gnome desktop and KDE4 needs something else?


UPDATE I think this will improve the netbeans fonts both in the edited files and in the netbeans app menus:
Add this to the $home/.netbeans/6.7/etc/netbeans.conf
file (you'd likely need to copy netbeans.conf from /usr/share/netbeans/6.7.1/etc/netbeans.conf )
for the netbeans_default_options=
Quote:
-J-Dawt.useSystemAAFontSettings=on -J-Dswing.aatext=true --laf com.sun.java.swing.plaf.gtk.GTKLookAndFeel
This works fine in Gnome, now I'll try KDE4 ---> it does

Last edited by marko; 28th November 2009 at 05:48 PM.
Reply With Quote
  #2  
Old 16th December 2009, 04:10 AM
pkpatel88 Offline
Registered User
 
Join Date: Apr 2005
Posts: 3
linuxfedorakonqueror
Wouldn't it be better to add

Code:
export _JAVA_OPTIONS="-Dswing.aatext=true -Dawt.useSystemAAFontSettings=on"
to your bashrc file.

This problem effects other java applications (e.g. MARS MIPS simulator and JFLAP). The method above doesn't make java applications use the GTK+ look and feel.

Adding the following to your bashrc file will make most java swing applications look like GTK+ applications with few notable exceptions, NetBeans.
Code:
export _JAVA_OPTIONS="-Dswing.aatext=true -Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"
In that case it would be better to add " --laf com.sun.java.swing.plaf.gtk.GTKLookAndFeel" to netbeans_default_options in netbeans.conf
Reply With Quote
  #3  
Old 14th January 2010, 08:28 PM
leif81 Offline
Registered User
 
Join Date: Sep 2005
Posts: 35
linuxsafari
I personnally like using the value 'lcd' instead of 'on'. i.e. -Dawt.useSystemAAFontSettings=lcd

The fonts are a bit thinner looking this way.

---------- Post added at 03:28 PM CST ---------- Previous post was at 03:28 PM CST ----------

I personnally like using the value 'lcd' instead of 'on'. i.e. -Dawt.useSystemAAFontSettings=lcd

The fonts are a bit thinner looking this way.
Reply With Quote
  #4  
Old 16th January 2010, 09:36 PM
lovenemesis's Avatar
lovenemesis Offline
Registered User
 
Join Date: Apr 2008
Location: Leeds, UK
Posts: 281
linuxfirefox
Woo, this really explains the ugly fonts on any java Swing applications but not on SWT ones.

I always changed the AA rendering option to LCD. Toggling it to others solves the problems.
__________________
Fedora Ambassador & Translator
Editor of LinuxTOY
Smolts Profile


Take a Deep Breath out of Windows
Reply With Quote
Reply

Tags
bad, fonts, kde4, netbeans

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Netbeans fonts rendering problem Cygnus_x1 Using Fedora 4 16th June 2009 12:50 AM
Fedora 9 and NetBeans unreadable fonts sohrberg Using Fedora 1 25th June 2008 07:41 PM
NetBeans superartur0 Using Fedora 1 24th October 2006 08:11 PM
Windows fonts guide(Including my .fonts.conf) liraz Guides & Solutions (No Questions) 1 25th June 2005 05:24 AM
.fonts.conf, Disabling AA only for windows fonts. liraz Using Fedora 1 27th April 2005 01:40 PM


Current GMT-time: 04:39 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat