You are not logged in.

#1 2014-02-04 13:53:02

Cthulhu82
Member
From: Nantes, France
Registered: 2013-04-01
Posts: 159

Font rendering problem in Netbeans (and java in general) [Solved]

Hello archers.

I wanted to test Netbeans for PHP programming. Work well, but I face ugly font rendering as you can see below :
https://dl.dropboxusercontent.com/u/547 … tbeans.png

The problem is not only in Netbeans but in also java application using the swing api (no problems with eclipse and swt api), both with OpenJDK and Oracle official java SDK.

I tried the different solutions found in the wiki, adding in /etc/profile.d/jre.sh the following options without success :

export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
export JAVA_FONTS=/usr/share/fonts/TTF

Does anyone know a solution for this ?
Thanks.

Last edited by Cthulhu82 (2014-02-05 10:06:12)


« En essayant continuellement, on finit par réussir.
Donc plus ça rate, plus ça a de chance de marcher. »
Devise Shadock

Offline

#2 2014-02-05 10:05:58

Cthulhu82
Member
From: Nantes, France
Registered: 2013-04-01
Posts: 159

Re: Font rendering problem in Netbeans (and java in general) [Solved]

OK, I eventualy discover that Java uses its own font configuration, and look for the fonts in /usr/share/fonts/TTF. As I use Bohoomil bundle fonts, which does not install fonts in this directory, Java wasn't finding the right fonts.
Copying the DejaVu family in /usr/share/fonts/TTF solved the problem.


« En essayant continuellement, on finit par réussir.
Donc plus ça rate, plus ça a de chance de marcher. »
Devise Shadock

Offline

Board footer

Powered by FluxBB