{"id":1640,"date":"2011-08-21T14:25:19","date_gmt":"2011-08-21T13:25:19","guid":{"rendered":"http:\/\/t-machine.org\/?p=1640"},"modified":"2011-08-21T16:25:20","modified_gmt":"2011-08-21T15:25:20","slug":"fix-eclipses-fonts-on-os-x","status":"publish","type":"post","link":"http:\/\/new.t-machine.org\/index.php\/2011\/08\/21\/fix-eclipses-fonts-on-os-x\/","title":{"rendered":"Fix Eclipse&#8217;s fonts on OS X"},"content":{"rendered":"<p>Eclipse current version (3.7?) randomly chooses some of the fonts from the System Font settings &#8211; this strikes me as rather stupid: you are only &#8220;allowed&#8221; to customize 90% of the fonts.<\/p>\n<p>Since OS X (10.6.7) still can&#8217;t render fonts correctly, when Eclipse grabs the system fonts, they&#8217;re often &#8220;wrong&#8221;.<\/p>\n<p>In Eclipse, you can choose most of your fonts by hand, and choose the font size etc. Combining this with the fixes (<a href=\"http:\/\/t-machine.org\/index.php\/2009\/10\/29\/eclipse-v3-5-os-x-when-sadistic-bastards-make-software\/\">1<\/a>, <a href=\"http:\/\/t-machine.org\/index.php\/2011\/07\/08\/firefox-5-very-fast-but-unusable-on-mac-os-x\/\">1<\/a>) that force Apple to stop &#8220;blurring&#8221; every font, you can almost get a useable Eclipse on OS X.<\/p>\n<p>Almost.<\/p>\n<p>Because of the stupid design mistake I mentioned above, the Package Explorer font in Eclipse is &#8220;non-configurable&#8221;. You want to change it? Give up. Eclipse won&#8217;t allow you.<\/p>\n<h4>Options<\/h4>\n<p>If you&#8217;ve used my other fixes for OS X, you&#8217;ll have fonts rendering nicely &#8211; as long as they don&#8217;t get too small.<\/p>\n<p>Eclipse is hard-coded to make the Package Explorer use a stupidly small font. You cannot fix this. It&#8217;s a bug in Eclipse that&#8217;s been around for a long long time.<\/p>\n<p>On most platforms, this is fine &#8211; your system fonts can be resized.<\/p>\n<p>Except on OS X, where the OS has such terrible font-support.<\/p>\n<p>Because of these two bugs (OS X has bad fonts &#8230; Eclipse is hard-coded to use small fonts), if you &#8220;fix&#8221; your OS X fonts to work for most apps, they&#8217;ll be broken in Eclipse.<\/p>\n<h4>Disabling system-fonts in OS X<\/h4>\n<p>The nearest I&#8217;ve found is that you can force Eclipse to ignore the *some* of the system fonts, by editing this file:<\/p>\n<blockquote><p>\n[eclipse install folder]\/configuration\/config.ini\n<\/p><\/blockquote>\n<p>and adding the lines:<\/p>\n<blockquote><p>\n# Use system small fonts (Mac OS X only)<br \/>\norg.eclipse.swt.internal.carbon.smallFonts=false\n<\/p><\/blockquote>\n<h4>Fixing the Log Output window<\/h4>\n<p>This one is relatively easy when you spot it: the ADT plugin ignores all the existing fonts in Eclipse, and sets it&#8217;s own unique font, for literally one panel only (the coloured log \/ console pane).<\/p>\n<p>The official name for that pane is LogCat (incidentally, by default, Eclipse hides this pane &#8211; even though you absolutely need it while working with Android &#8211; you need to go to the Window\/Show Perspectives menu and manually add it).<\/p>\n<p>In the main settings for Eclipse &#8230; Android, there&#8217;s a section LogCat, where you can set the font. This doesn&#8217;t actually work &#8211; it&#8217;s got a bug, and will crash itself &#8211; but if you ignore the crash, and restart Eclipse, your changes will be honoured.<\/p>\n<h4>What would really be nice<\/h4>\n<p>&#8230;is if Eclipse added literally one option to their fonts dialog: an option to manually choose the &#8220;missing&#8221; hardcoded font. Then all would work great.<\/p>\n<p>&#8230;or (much more unlikely), if Apple would fix their entire font-rendering system. Over the years, they&#8217;ve fiddled with it a few times. They *know* that it&#8217;s &#8220;technically correct for print-designers, but completely incorrect for many\u00a0normal users&#8221; they *know* that users find it impossible to work with &#8211; but their solution so far is to keep removing features and options, and forcing all users to get a mediocre (or plain bad) experience. Hubris, I think.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Eclipse current version (3.7?) randomly chooses some of the fonts from the System Font settings &#8211; this strikes me as rather stupid: you are only &#8220;allowed&#8221; to customize 90% of the fonts. Since OS X (10.6.7) still can&#8217;t render fonts correctly, when Eclipse grabs the system fonts, they&#8217;re often &#8220;wrong&#8221;. In Eclipse, you can choose [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[],"_links":{"self":[{"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/posts\/1640"}],"collection":[{"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/comments?post=1640"}],"version-history":[{"count":0,"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/posts\/1640\/revisions"}],"wp:attachment":[{"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/media?parent=1640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/categories?post=1640"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/tags?post=1640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}