PDA

View Full Version : [ubuntu] Sub-pixel smoothing not working in Netbeans



sayeo87
September 24th, 2008, 09:37 PM
Hi, I'm having trouble getting sub-pixel smoothing working in NetBeans 6.1.

I can't stand the monospaced (or any other fonts) in Netbeans without sub-pixel smoothing and I was hoping somebody knows how to make it work.

Here's what I'm talking about:


gedit (with smoothing)
http://web.ics.purdue.edu/~yeo/withSmoothing.png


netbeans (without smoothing)
http://web.ics.purdue.edu/~yeo/withoutSmoothing.png


Thanks,
Suan

apere006
July 28th, 2009, 03:36 PM
I know this is an old thread but im having the same problem in netbeans 6.5. Any help will be apericated

hictio
July 28th, 2009, 06:41 PM
Not sure, but... Are you using any other than RGB Sub-pixel order?
Perhaps this might help you: Subpixel/Lcd mode with VRGB/VBGR makes qt4 applications on Jaunty unreadable (https://bugs.edge.launchpad.net/ubuntu/+source/qt4-x11/+bug/334657)

Zorael
July 28th, 2009, 09:45 PM
FWIW as terminology goes, the gedit image looks like it's using slight or medium hinting, whereas netbeans looks to be using full hinting. (And I *strongly* prefer the netbeans look (full hinting); gedit there just seems fuzzy.)

At any rate, have you tried making changes to your ~/.fonts.conf? Example;

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

<match target="font" >
<edit mode="assign" name="embeddedbitmap" >
<bool>true</bool>
</edit>
</match>

<match target="font" >
<edit mode="assign" name="rgba" >
<const>rgb</const>
</edit>
</match>

<match target="font" >
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
</match>

<match target="font" >
<edit mode="assign" name="hintstyle" >
<const>hintfull</const>
</edit>
</match>

<match target="font" >
<edit mode="assign" name="antialias" >
<bool>true</bool>
</edit>
</match>
</fontconfig>
I'm not sure netbeans obey GNOME's settings, but it just might obey .font.conf's. Change hintfull to hintslight or hintmedium, perhaps.

See http://fontconfig.org/fontconfig-user.html for more documentation, http://www.kilobitspersecond.com/2009/04/17/ubuntu-font-hinting-you-a-cautionary-tale/ for some examples, and https://wiki.ubuntu.com/Fonts for the Ubuntu Wiki entry.

bjtuna
November 3rd, 2009, 06:46 AM
I'm having the same issue as the original post. Nothing I've tried has worked, including adding "-J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd" to netbeans_default_options in netbeans.conf. I'm using sun-java6 on Ubuntu 9.04, with Netbeans 6.8beta.

cm000000
January 14th, 2010, 10:22 AM
Have you get any advance in this matter? I've been googling and tryed sevareal changes (included yours) in configuration but i cant get antialias in netbeans 6.8.

Regards

Yellow Pasque
January 14th, 2010, 02:36 PM
http://wiki.archlinux.org/index.php/Java_Fonts_-_Sun_JRE