转,牛人改制gnome shell 字体
Tofloor
poster avatar
qiansen1386
deepin
2011-12-23 14:42
Author
大家都来玩gnome-shell
.
分类: Linux(Fedora) 的 困惑和一得2011-06-10 23:15149人阅读评论(0)收藏举报


这个gnome-shell,或者说gnome 3.0定制性很强,但是可以调节的工具确有很少,真是让人纠结。难道就每个人都去自己改CSS或者是JS代码?

本人呢,也来讲个故事,呵呵。

我就是看着这个顶部的面板来气,这些地方的字体怎么都改不到。当然了,我手上只有一个gnome-tweak-tool,和几个扩展插件。

是的,我看了一下,说是这些都是用一个CSS样本文件来定义的,于是乎用了老技巧。

rpm -ql |grep css

果然有一个:/usr/share/gnome-shell/theme/gnome-shell.css

然后呢,备份一下再玩,这个习惯很好的啊。工作上培养出来的,已经是本能之一了。

cp /usr/share/gnome-shell/theme/gnome-shell.css ./

然后呢:

sudo vim /usr/share/gnome-shell/theme/gnome-shell.css

没有启用sudo的话,可以用su登陆一下再来。

第一句话就是这样子。





在看看人家的说明:

Hard code Cantarell as the default UI font.

- specify an overall font-family for all children of the stage and for places where we just want to use a size, use font-size. - also shrink the humongous 16px panel and menu size to a reasonable 14. - scale up the icons to be 16px by default again Based on a patch by Jakub Steiner https://bugzilla.gnome.org/show_bug.cgi?id=634226



我就凌乱了,平啥就不给我们一个更改的机会啊,不要以为Cantarell就是所有人都喜欢的字体啊,它只是个英文字体啊。

看这里虽然不错

这个gnome-shell,或者说gnome 3.0定制性很强,但是可以调节的工具确有很少,真是让人纠结。难道就每个人都去自己改CSS或者是JS代码?

本人呢,也来讲个故事,呵呵。

我就是看着这个顶部的面板来气,这些地方的字体怎么都改不到。当然了,我手上只有一个gnome-tweak-tool,和几个扩展插件。

是的,我看了一下,说是这些都是用一个CSS样本文件来定义的,于是乎用了老技巧。

rpm -ql |grep css

果然有一个:/usr/share/gnome-shell/theme/gnome-shell.css

然后呢,备份一下再玩,这个习惯很好的啊。工作上培养出来的,已经是本能之一了。

cp /usr/share/gnome-shell/theme/gnome-shell.css ./

然后呢:

sudo vim /usr/share/gnome-shell/theme/gnome-shell.css

没有启用sudo的话,可以用su登陆一下再来。

第一句话就是这样子。

stage {

font-family: cantarell, sans-serif;

}



在看看人家的说明:

Hard code Cantarell as the default UI font.

- specify an overall font-family for all children of the stage and for places where we just want to use a size, use font-size. - also shrink the humongous 16px panel and menu size to a reasonable 14. - scale up the icons to be 16px by default again Based on a patch by Jakub Steiner https://bugzilla.gnome.org/show_bug.cgi?id=634226



我就凌乱了,平啥就不给我们一个更改的机会啊,不要以为Cantarell就是所有人都喜欢的字体啊,它只是个英文字体啊。

看这里虽然不错

http://www.google.com/webfonts/family?f ... l#variants

这个对我们中国人来说并不友好的字体还是换掉好了:



stage {
     font-family: WenQuanYi Bitmap Song, sans-serif;
}

我于是把他改成大名鼎鼎的文泉驿了,我的世界终于清晰了许多啊。

注:@lazyCat @ApplePie
Reply Favorite View the author
All Replies
s.******fe@gmail.com
deepin
2011-12-24 05:28
#1
你要在文章开头注明一句: 本方法是针对fedora的…………
Reply View the author
qiansen1386
deepin
2011-12-24 10:57
#2
我勒个去……原来是这样,他的原理我一句也没看懂,更别说识别环境了……抱歉抱歉……
Reply View the author
s.******fe@gmail.com
deepin
2011-12-25 23:41
#3
我勒个去……原来是这样,他的原理我一句也没看懂,更别说识别环境了……抱歉抱歉……
那下次就别随便转载啊……
Reply View the author