解决Ubuntu Eclipse下斜体字为方框

字体大小: 中小 标准 ->行高大小: 标准

Ubuntu 11.04中安装Eclipse后发现所有的斜体字都显示为方框,而中文可正常显示,应不是编码的问题,而是字体找不到的原因。

在Eclipse->Window->Preferences->General->Appearance->Colors and Fonts->C/C++->Editor->C/C++ Editor Text Font中预览当前使用的Monospace字体样式设为Italic时无法显示(显示为方框)。看来是缺少字体原因。

在Ubuntu软件中心中搜索“Italic Monospace”,发现有一项“Vera font family derivate with additional characters”,在线安装即可解决。

此文章由 http://www.ositren.com 收集整理 ,地址为: http://www.ositren.com/htmls/58991.html