eclipse 包资源管理器中文件夹的字体设置在哪里?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2131771/
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
Where's the font setting for folders in the Package Explorer?
提问by Carl Smotricz
I'm talking about Eclipse (3.5 = Galileo), running under Kubuntu 9.10 and I have the Subversive plugin.
我说的是 Eclipse (3.5 = Galileo),它在 Kubuntu 9.10 下运行,我有 Subversive 插件。
I've been moved from Gnome-Ubuntu to Kubuntu, and one side effect was that some fonts are now just too tiny to read.
我已经从 Gnome-Ubuntu 转移到 Kubuntu,一个副作用是现在有些字体太小而无法阅读。
File names in the explorer have a decent size, but foldersare shown in a too-small font, and after having adjusted all the fonts in General|Appearance|Colors and Fonts
the folders are unchanged.
资源管理器中的文件名大小合适,但文件夹显示的字体太小,调整后General|Appearance|Colors and Fonts
文件夹中的所有字体都没有变化。
Maybe I'm just blind. I'd appreciate it if someone could point me to where I can adjust the font for folders in the Package Explorer
也许我只是瞎了。如果有人能指出我可以在包资源管理器中调整文件夹字体的位置,我将不胜感激
采纳答案by Andrew Aylett
It'll use the default GTK+ font settings, as Eclipse is a GTK application. You may have to install Gnome's Appearance preference applet to get a GUI to change it.
它将使用默认的 GTK+ 字体设置,因为 Eclipse 是一个 GTK 应用程序。您可能必须安装 Gnome 的外观首选项小程序才能获得 GUI 来更改它。
回答by ams
Eclipse is supposed to respect the OS settings but it turns out on Mac OS X the default setting for eclipse is to use small Fonts rather than the standard os fonts. On Mac OS X you can change edit the eclipse.ini file and remove -Dorg.eclipse.swt.internal.carbon.smallFonts
restart eclipse and presto you will find that your package explorer looks brilliant with reasonable sized fonts.
Eclipse 应该尊重 OS 设置,但事实证明在 Mac OS X 上,eclipse 的默认设置是使用小字体而不是标准的 os 字体。在 Mac OS X 上,您可以更改编辑 eclipse.ini 文件并删除-Dorg.eclipse.swt.internal.carbon.smallFonts
重新启动 eclipse 并且很快您会发现您的包浏览器看起来很漂亮,字体大小合理。
To find the eclipse.ini on a Mac, right click on Eclipse.app, then select "show package contents", then you will find the ini file in Eclipse.app/Contents/MacOS/eclipse.ini
在Mac上找eclipse.ini,右键Eclipse.app,选择“show package contents”,然后你会在Eclipse.app/Contents/MacOS/eclipse.ini中找到ini文件
回答by Carl Smotricz
Feedback on success:
成功反馈:
It seems that in Kubuntu, any fonts not explicitly specified in Eclipse's preferences come from the system. Eclipse is a Gnome app, so its fonts (among other stuff) are controlled by
似乎在 Kubuntu 中,Eclipse 首选项中未明确指定的任何字体都来自系统。Eclipse 是一个 Gnome 应用程序,所以它的字体(以及其他东西)由
System Settings | Appearance | GTK+ Appearance
System Settings | Appearance | GTK+ Appearance
...and there I was able to fiddle the fonts to my satisfaction.
...在那里,我能够调整字体以满足我的需求。
My thanks to Andrew Aylett!
感谢安德鲁·艾莱特!