完美调整Ubuntu下的Eclipse字体及界面显示

我的Ubuntu一直是通过一些常见的美化方法,安装一些商业字体的方式进行美化,用下来也来看得过去,但是,近来工作需要,较多的使用eclipse,发现eclipse在linux下明显字体偏大,和当年习惯的windows平台上的显示相对,浪费大量屏幕空间不说,感觉自己一下就到了老花眼要看大字报的悲凉感觉。

心有不甘之余,开始google,,找到这个字体包:

ttf-liberation – Free fonts with the same metrics as Times, Arial and Courier

号称使用了和习惯上相同的最美观的metrics,可以通过apt-get安装:

sudo apt-get install ttf-liberation

安装完成之后,打开字体属性,把“应用程序/文档/桌面”字体都调整为Liberation Sans 9,“窗口标题”字体调整为Liberation Sans Bold 9,“等宽”字体调整为Liberation Mono 9;如果是高分屏,可以把字体大小调整为10。字体渲染可以自己调整到满意为止。

这样调整后,如果eclipse使用默认的系统字体的话,基本上还看得过去了,不过导航树的缩进还是过宽,可以通过在~/.gtkrc-2.0中加入以下内容:

style “gtkcompact” {font_name=”Sans 8″GtkButton::default_border={0,0,0,0}GtkButton::default_outside_border={0,0,0,0}GtkButtonBox::child_min_width=0GtkButtonBox::child_min_heigth=0GtkButtonBox::child_internal_pad_x=0GtkButtonBox::child_internal_pad_y=0GtkMenu::vertical-padding=1GtkMenuBar::internal_padding=0GtkMenuItem::horizontal_padding=4GtkOptionMenu::indicator_size=0GtkOptionMenu::indicator_spacing=0GtkPaned::handle_size=4GtkRange::trough_border=0GtkRange::stepper_spacing=0GtkScale::value_spacing=0GtkScrolledWindow::scrollbar_spacing=0GtkExpander::expander_size=10GtkExpander::expander_spacing=0GtkTreeView::vertical-separator=0GtkTreeView::horizontal-separator=0GtkTreeView::expander-size=8GtkTreeView::fixed-height-mode=TRUEGtkWidget::focus_padding=0}class “GtkWidget” style “gtkcompact”

我不去想是否能够成功,既然选择了远方,便只顾风雨兼程!

完美调整Ubuntu下的Eclipse字体及界面显示

相关文章:

你感兴趣的文章:

标签云: