Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Default font in Eclipse on OSX is terrible (and blurred)

Tags:

macos

eclipse

Removing

-Dorg.eclipse.swt.internal.carbon.smallFonts

from eclipse.ini and changing the font to menlo seems to improve the situation a bit. However the font is still a bit unsharp, compared to Xcode.

I don't see why they ship it like that or do they just don't care about the mac version?

like image 385
Nils Avatar asked Apr 29 '10 11:04

Nils


People also ask

What is the default system font for Mac?

San Francisco (SF) is the system font on all Apple platforms; the SF Pro variant is the system font in macOS.


2 Answers

What version of OSX and of Eclipse are you using?

  • Menlo is a Snow Leopard font
  • SWT has a Cocoa port in Eclipse 3.5

smallFonts were fixed for SWT Cocoa only in 3.5.

(picture of font menlo in action)
http://rubenerd.com/uploads/screenie.snowleopard.menlo.png

defaults write org.eclipse.eclipse AppleAntiAliasingThreshold 20
like image 68
VonC Avatar answered Sep 17 '22 14:09

VonC


The workaround I found on this page https://bugs.eclipse.org/bugs/show_bug.cgi?id=382972#c4 works perfect for me:

Do "Show package contents" on the Eclipse.app. Edit Contents/Info.plist. Just above

</dict>
</plist>

Place this:

<key>NSHighResolutionCapable</key>
<true/>

Then, log out or make a copy of the app so that OSX will notice the change. Now, the info window will not show "Open in Low Resolution" as checked. Launch Eclipse and enjoy your new retina awesomeness.

like image 20
user962815 Avatar answered Sep 21 '22 14:09

user962815