NetBeans antialiasing

English flag I heard there are ugly fonts in NetBeans on Windows OS (compared to Mac OS X where fonts seem to be perfect). The question is how to eliminate this problem on Windows. And my answer is Run NetBeans with antialiasing switch. My knowledge of antialiasing is not perfect but I know how to make NetBeans to be better aliasing. Here is the magic you can try - run NetBenas with the following command:
nb.exe -J-Dswing.aatext=true -userdir $my_userdir -jdkhome $my_jdkhome
Or add the switch to netbeans/etc/netbeans.conf file. Change line starting with netbeans_default_options to netbeans_default_options="-J-Dswing.aatext=true -J...
It doesn't work in Mustang (Java 6) but Mustang Swing uses the system's antialiasing setting so that the property is not needed since Java 6.
I prepared screenshot with piece of NetBeans with and without antialiasing. You can guess whether left or right part becomes from NetBeans started with -J-Dswing.aatext=true switchsmile.
antialiasing
Antialiasing Off vs On.

Windows XP contain antialiasing support too. It is the other way how to improve look of fonts in NetBeans. Go to Start menu -> Settings | Control Panel. Then select Display and push Effects... button. Then change Use the following method to smooth edges of screen fonts: from Standard to Clear Type as shows following picture.
antialiasing
That's all from me about antialiasing.

Czech flag Zaslechl jsem, že v NetBeans jsou na Windows OS nehezké fonty (v porovnání s Mac OS X kde fonty vypadají perfektně). Otázkou je, jak tento problém na Windows eliminovat. Moje odpověď je spusťte NetBeans s přepínačem pro antialiasing. Moje znalost antialiasingu není nijak perfektní, vím ale jak přinutit NetBeans, aby měly lépe vyhlazené fonty. Tady je kouzlo, které můžete vyzkoušet - spusťte NetBeans pomocí následujícího příkazu:
nb.exe -J-Dswing.aatext=true -userdir $my_userdir -jdkhome $my_jdkhome
Nebo je možné přepínač zapsat do souboru netbeans/etc/netbeans.conf. Tam je zapotřebí změnit řádku začínající řetězcem netbeans_default_options na netbeans_default_options="-J-Dswing.aatext=true -J...
Nefunguje to ovšem pod Mustangem (Java 6), ale Swingy v Mustangu používají nastavení antialiasingu ze systému takže přepínač v Java 6 už není zapotřebí.
Připravil jsem screenshot s kouskem NetBeans při zapnutém a vypnutém antialiasingu. Zkuste hádat jestli je levá nebo pravá část obrázku z NetBeans puštěných s přepínačem -J-Dswing.aatext=truesmile.
antialiasing
Vypnutý vs zapnutý antialiasing.

Windows XP má také podporu pro antialiasing. Je to druhá cesta jak vylepšit vzhled fontů v NetBeans. Jděte do Start menu -> Settings | Control Panel. Pak vyberte Display a stlačte tlačítko Effects.... Pak změňte Use the following method to smooth edges of screen fonts: z Standard na Clear Type jak ukazuje následující obrázek.
antialiasing
To je ode mne všechno ohledně antialiasingu.

Comments:

Thank you very much for this rather informative psot Jara! I am gonna give it a shot right now!

Posted by Surya on červenec 27, 2006 at 04:31 odp. CEST #

Please note that this property is not documented and may not work in future releases. In fact, it doesn't work in Mustang (Java 6, see http://mustang.dev.java.net).

But the good news is that in Mustang Swing picks up the Desktop's antialiasing setting, so no need for the property!

Also, Mustang sports support for LCD antialiasing (aka ClearType on Windows).
So try running Netbeans on Mustang, you won't be disappointed.
Thank you,
Dmitri
Java2D Team

Posted by Dmitri Trembovetski on červenec 27, 2006 at 06:50 odp. CEST #

Thanks Dimitri. Yes I have tried Netbeans on Mustang and it looks great! There is a sort of glassy look to it. Mustang is an amazing release that I just cant wait to use once it gets released. Netbeans runs quite fast and zippy while looking great!

Posted by Surya on červenec 27, 2006 at 07:35 odp. CEST #

Dmitri, thanks for the comment. I changed blog entry according to notice you provided.

Posted by .JARa on červenec 28, 2006 at 01:33 dop. CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

jara

Search

Archives
« září 2015
PoÚtStČtSoNe
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today