Mac OS X 上的 Eclipse PDE:在运行时获取正确的字体大小?

发布于 2024-07-09 19:31:48 字数 262 浏览 9 评论 0原文

在 Mac OS X 上使用 Eclipse PDE 时有一个恼人的“功能”:运行时 IDE 的字体大小与真正的 IDE 不一样。 如果您正在开发一个插件并启动一个 Eclipse 实例来测试它(从 Eclipse 内),您会注意到生成的实例看起来与原始运行的 Eclipse 实例非常不同。 字体又大又丑。 这使得微调插件 UI 变得困难。

顺便说一句,我没有遇到 Windows 的这种行为。

有什么想法如何快速解决这个问题?

谢谢。

There's an annoying "feature" when using Eclipse PDE on Mac OS X: the font size of the runtime IDE is not the same as the true IDE. If you're developing a plug-in and you launch an Eclipse instance to test it (from within Eclipse), you will notice that the spawned instance looks very different from the original running Eclipse instance. The fonts are big and ugly. This makes it hard to fine-tune the plug-in UI.

BTW, I did not encounter that behavior of Windows.

Any ideas how to quickly solve this issue?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

尤怨 2024-07-16 19:31:48

找到了答案。

您需要将以下 VM 参数添加到启动配置中:
-Dorg.eclipse.swt.internal.carbon.smallFonts

我打开了一个关于它的缺陷。 希望它能得到修复。

Found the answer.

You need to add the following VM argument to your launch configuration:
-Dorg.eclipse.swt.internal.carbon.smallFonts

I opened a defect about it. Hopefully it will be fixed.

清君侧 2024-07-16 19:31:48

Eclipse 将其首选项保存在每个工作空间的基础上。 您可能不会为两个 Eclipse 实例使用相同的工作区。 因此,您需要设置一次生成的首选项,或者将其从原始工作空间复制到生成工作空间。

现在您已经获得了默认设置,但这可能不是您在实例中设置的。

Eclipse saves its preferences on a per-workspace base. You probably don't use the same workspace for both eclipse instances. Threfore you'd need to set the preferences for the spawn once or copy it to the spawn-workspace from your original one.

Now you've got the default settings and that is probably not what you've set in your instance.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文