Maybe I’m just a crotchety, old-school, Jolt-drinking, amber-on-black, command-line code junkie, but for the last 2 years I’ve been so frustrated that I just can’t get my code font in Eclipse / Flex Builder on Mac OS X to be aliased! Those little smooth edges on my fixed-width bitmap fonts drove me to irrational madness. Well, I had given up and moved to PC, but I’ve had Mac laptops throughout, and I finally took some time to solve this little pet peeve. If you share my frustration, read on.
Arrrgh!
Ahhhh…
As far as I can tell, there’s no way to turn off anti-aliasing in the Eclipse preferences, or in OS X’s Java preferences. Eclipse will insist on anti-aliasing even a perfectly fine bitmap font at its natural size.

The only way I saw around this was to “Turn off text smoothing for sizes N and smaller,” in the Appearance pane of System Preferences. Of course I could sacrifice all anti-aliasing globally by turning it off here, but I do like nicely AA text when I’m not writing code. My preferred coding font, the excellent Proggy Square by Tristan Grimmer (available free at www.proggyfonts.com), appears pixel-for-pixel at a point size of 16. Disabling anti-aliasing for fonts smaller than or equal to 16pt was clearly not much better than globally disabling it.
So, all I did was a fairly stupid hack. I opened up fontforge, an incredible open source font editor, scaled up all the glyphs in the font to 400%, changed the name of the font so it could coexist with my original Proggy Square, and saved it out. Now I have Eclipse use my modified Proggy Square Huge at 4pt for code text — the same visual size as it was before at 16pt — and I have disabled anti-aliasing for all fonts 4pt and lower, which is completely reasonable, as anything but an intentionally broken font would appear illegible at that size anyway.
You can apply these steps to your own monospace font of choice to overcome this limitation in Flex Builder / Eclipse / Java on OS X. Or, you can download my copy of Proggy Square Huge. All credit for this font goes to its creator, Tristan.
Download Proggy Square Huge (OTF, works on Mac/Win, 34K).
Pingback: Netbeans Font Smoothing in OSX
Pingback: Jannis Hermanns' place
Pingback: YAY!MEDIA - Flash Platform Development Blog
Pingback: necessary and sufficient » Blog Archive » disabling anti-aliased fonts in netbeans on osx