OSX 上 Eclipse 中的默认字体很糟糕(而且模糊)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2736856/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Default font in Eclipse on OSX is terrible (and blurred)
提问by Nils
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.
从 eclipse.ini 并将字体更改为 menlo 似乎稍微改善了这种情况。然而,与 Xcode 相比,字体仍然有点不清晰。
I don't see why they ship it like that or do they just don't care about the mac version?
我不明白他们为什么这样发货,或者他们只是不关心 mac 版本?
采纳答案by VonC
What version of OSX and of Eclipse are you using?
您使用的是什么版本的 OSX 和 Eclipse?
- Menlo 是一种雪豹字体
- SWT 在 Eclipse 3.5 中有一个 Cocoa 端口
smallFonts were fixed for SWT Cocoa only in 3.5.
仅在 3.5 中为SWT Cocoa修复了 smallFonts 。
(picture of font menlo in action)
(运行中的字体 menlo 图片)
defaults write org.eclipse.eclipse AppleAntiAliasingThreshold 20
回答by user962815
The workaround I found on this page https://bugs.eclipse.org/bugs/show_bug.cgi?id=382972#c4works perfect for me:
我在此页面上找到的解决方法https://bugs.eclipse.org/bugs/show_bug.cgi?id=382972#c4非常适合我:
Do "Show package contents" on the Eclipse.app. Edit Contents/Info.plist. Just above
在 Eclipse.app 上执行“显示包内容”。编辑 Contents/Info.plist。就在上面
</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.
然后,注销或复制应用程序,以便 OSX 会注意到更改。现在,信息窗口不会显示选中的“以低分辨率打开”。启动 Eclipse 并享受新的视网膜功能。
回答by ErezK
I was battling with this issue today and it is also applicable to other applications such as jEdit (yet to verify). I had eclipse working perfectly fine by itself, ADT, FlashBuilder 4.7 but not in FlashBuilder 4.6.
我今天正在与这个问题作斗争,它也适用于其他应用程序,例如 jEdit(尚未验证)。我让 eclipse 本身工作得很好,ADT,FlashBuilder 4.7 但不是在 FlashBuilder 4.6 中。
Indeed adding NSHighResolutionCapable, per comment #5 fixed it. Logging out, even reboot, did not make a difference. But copying, deleting the original and renaming the app did the trick.
确实添加了 NSHighResolutionCapable,每条评论 #5 修复了它。注销,甚至重新启动,都没有任何区别。但是复制、删除原始应用程序和重命名应用程序就成功了。
回答by Pujan Srivastava
I am using Consolas 13pt on Kepler OSX and no issue.
我在 Kepler OSX 上使用 Consolas 13pt,没有问题。
回答by zvikico
I recommend trying Anonymous Pro, it's a free monospaced font, works very well for me. Read more here.
我建议尝试Anonymous Pro,它是一种免费的等宽字体,对我来说效果很好。在这里阅读更多。
There's also Consolas, from Microsoft, which is very good. More details on how to get it on a Mac can be found here.
还有来自微软的 Consolas,它非常好。可以在此处找到有关如何在 Mac 上获取它的更多详细信息。
回答by Nils
Xcode http://www.freeimagehosting.net/uploads/176b770a89.png
Xcode http://www.freeimagehosting.net/uploads/176b770a89.png
eclipse http://www.freeimagehosting.net/uploads/c141361de2.png
日食 http://www.freeimagehosting.net/uploads/c141361de2.png
Humm I still think Xcode looks a bit better, but this is probably also because of the smaller font.
嗯,我仍然认为 Xcode 看起来好一点,但这可能也是因为字体较小。