{"id":29,"date":"2011-05-02T00:21:39","date_gmt":"2011-05-02T07:21:39","guid":{"rendered":"https:\/\/www.alexkorn.com\/blog\/?p=29"},"modified":"2012-11-07T11:04:26","modified_gmt":"2012-11-07T18:04:26","slug":"turning-off-text-anti-aliasing-with-netbeans-7-on-os-x","status":"publish","type":"post","link":"https:\/\/www.alexkorn.com\/blog\/2011\/05\/turning-off-text-anti-aliasing-with-netbeans-7-on-os-x\/","title":{"rendered":"Turning off text anti-aliasing with NetBeans 7.0 on OS X"},"content":{"rendered":"<p>\n<a href=\"https:\/\/www.alexkorn.com\/blog\/2012\/03\/turning-off-text-anti-aliasing-with-netbeans-7-1-on-os-x\/\">See the updated post for NetBeans 7.1 and 7.2<\/a>.\n<\/p>\n<h2>The quick version<\/h2>\n<p>\nFor those who want to turn off text anti-aliasing in NetBeans 7.0.x on Mac OS X without reading my tirades, just make the following changes to the definition of <code>netbeans_default_options<\/code> in <code>\/Applications\/NetBeans\/NetBeans\\ 7.0.app\/Contents\/Resources\/NetBeans\/etc\/netbeans.conf<\/code> (or something similar if you didn&#8217;t install it in the default location):\n<\/p>\n<p style=\"margin-bottom:0;\">Add:<\/p>\n<pre>\r\n-J-Dswing.aatext=false -J-Dawt.useSystemAAFontSettings=off \r\n<\/pre>\n<p style=\"margin-bottom:0;\">Change:<\/p>\n<pre>\r\n-J-Dapple.awt.graphics.UseQuartz=false\r\n<\/pre>\n<p>\nRestart NetBeans and you should have non-anti-aliased fonts.\n<\/p>\n<h2>The full story<\/h2>\n<p>\nThe perfect programming font: many have searched; few have found.\n<\/p>\n<p>\nIt&#8217;s Monaco, 10pt, no anti-aliasing.\n<\/p>\n<p>\nBut I digress. My goal here is not to discuss fonts (but seriously, I love discussing fonts), but to write the most keyword-heavy post for those trying to figure out how to <em>turn off text anti-aliasing in NetBeans 7 on Mac OS X<\/em>. By default, NetBeans uses anti-aliasing for its editor, which, for most fonts, is great, but not for Monaco 10pt.\n<\/p>\n<p>\nWhen I used NetBeans 6.x, I found <a href=\"http:\/\/ibnaziz.wordpress.com\/2009\/06\/10\/netbeans-anti-aliasing\/\">this page<\/a> to be quite useful. However, when I tried turning off anti-aliasing with NetBeans 7.0, it did not work.\n<\/p>\n<p>\nAfter a bit of exploring, I found the key to be setting <code>-J-Dapple.awt.graphics.UseQuartz=false<\/code>. I believe Quartz refers to the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Quartz_2D\">2D graphics rendering API for OS X<\/a>, but for the sake of your non-anti-aliased font, you certainly don&#8217;t need it.\n<\/p>\n<h2>In-Application Setting<\/h2>\n<p>\nNetBeans has been well aware <a href=\"http:\/\/netbeans.org\/bugzilla\/show_bug.cgi?id=144715\">of<\/a> <a href=\"http:\/\/netbeans.org\/bugzilla\/show_bug.cgi?id=144516\">the<\/a> <a href=\"http:\/\/netbeans.org\/bugzilla\/show_bug.cgi?id=79453\">issue<\/a> for quite some time, so don&#8217;t expect the anti-aliasing setting to be modifiable inside the application any time soon.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>See the updated post for NetBeans 7.1 and 7.2. The quick version For those who want to turn off text anti-aliasing in NetBeans 7.0.x on Mac OS X without reading my tirades, just make the following changes to the definition of netbeans_default_options in \/Applications\/NetBeans\/NetBeans\\ 7.0.app\/Contents\/Resources\/NetBeans\/etc\/netbeans.conf (or something similar if you didn&#8217;t install it in the [&hellip;]<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[21,9,22],"class_list":["post-29","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-fonts","tag-mac-os-x","tag-netbeans"],"_links":{"self":[{"href":"https:\/\/www.alexkorn.com\/blog\/wp-json\/wp\/v2\/posts\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.alexkorn.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.alexkorn.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.alexkorn.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.alexkorn.com\/blog\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":0,"href":"https:\/\/www.alexkorn.com\/blog\/wp-json\/wp\/v2\/posts\/29\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.alexkorn.com\/blog\/wp-json\/wp\/v2\/media?parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.alexkorn.com\/blog\/wp-json\/wp\/v2\/categories?post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.alexkorn.com\/blog\/wp-json\/wp\/v2\/tags?post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}