fluxbox下字体设置

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
yuriwin
帖子: 104
注册时间: 2007-12-12 8:24

fluxbox下字体设置

#1

帖子 yuriwin » 2014-02-09 14:18

使用debian6.04-amd64,没有安装GDM,只有一个fluxbox桌面。在~/.fonts文件夹内放入了微软雅黑,文泉译正黑字体。
~/.fluxbox/overlay内容如下:
# 菜单标题的字体
menu.title.font: 微软雅黑-14
# 菜单组标题的对齐方式
menu.title.justify: center
# 菜单项目的字体
menu.frame.font: 微软雅黑-12
# 菜单项目的对齐方式
menu.frame.justify: left
# 窗口标题栏文字的字体
window.font: 微软雅黑-14
# 窗口标题栏文字的对齐方式
window.justify: center
# 窗口标题聚焦时的背景颜色|5/5/f
window.label.focus.color: rgb:4e/8f/cf
window.label.focus.colorTo: rgb:4e/8f/cf
# 时钟的字体
toolbar.clock.font: 微软雅黑-10
# 工作区名称的字体
#toolbar.workspace.font: 微软雅黑
# 图标栏的字体
toolbar.iconbar.focused.font: 微软雅黑-10
toolbar.iconbar.unfocused.font: 微软雅黑-10


/usr/share/fluxbox/styles 目录下使用的style关于字体我分别这样修改的:
第一种
# fonts------------------------------------------
menu.frame.font: WenQUanYi Zen Hei-14:bold
menu.title.font: WenQUanYi Zen Hei-12:bold
toolbar.clock.font: WenQUanYi Zen Hei-10:bold
toolbar.workspace.font: WenQUanYi Zen Hei-10:bold
toolbar.iconbar.focused.font: WenQUanYi Zen Hei-10:bold
toolbar.iconbar.unfocused.font: WenQUanYi Zen Hei-10
window.font: WenQUanYi Zen Hei-10
第二种
# fonts------------------------------------------
menu.frame.font: 微软雅黑-14:bold
menu.title.font: 微软雅黑-12:bold
toolbar.clock.font: 微软雅黑-10:bold
toolbar.workspace.font: 微软雅黑-10:bold
toolbar.iconbar.focused.font: 微软雅黑-10:bold
toolbar.iconbar.unfocused.font: 微软雅黑-10
window.font: 微软雅黑-10
第三种
# fonts------------------------------------------
menu.frame.font: Msyh-14:bold
menu.title.font: Msyh-12:bold
toolbar.clock.font: Msyh-10:bold
toolbar.workspace.font: Msyh-10:bold
toolbar.iconbar.focused.font: Msyh-10:bold
toolbar.iconbar.unfocused.font: Msyh-10
window.font: Msyh-10
但是应用程序字体显示都不正常。如图:
字体显示不正常截屏
字体显示不正常截屏
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: fluxbox下字体设置

#2

帖子 poloshiao » 2014-02-09 16:09

在~/.fonts文件夹内放入了微软雅黑,文泉译正黑字体。
改變 字型設定後
fc-cache -fv
或者
重新開機
新設定才生效

詳細參見
https://wiki.debian.org/Fonts#Configuration
头像
YeLee
论坛版主
帖子: 26406
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
联系:

Re: fluxbox下字体设置

#3

帖子 YeLee » 2014-02-09 19:06

沒有session daemon接管theme的情況下,gtk2程式需要手動設定gtkrc。 :em01
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
头像
yuriwin
帖子: 104
注册时间: 2007-12-12 8:24

Re: fluxbox下字体设置

#4

帖子 yuriwin » 2014-02-11 5:41

暂时没有解决,装了个xfce先凑合着。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: fluxbox下字体设置

#5

帖子 poloshiao » 2014-02-11 9:36

看看 這一篇 能否幫到你
http://fluxbox-wiki.org/index.php?title=Change_font
fluxbox fonts are only for the toolbar, the windowtitle and the menu (rootmenu, windowmenu, toolbarmenu...).
头像
yuriwin
帖子: 104
注册时间: 2007-12-12 8:24

Re: fluxbox下字体设置

#6

帖子 yuriwin » 2014-03-09 14:20

偶然发现root用户的显示正常,于是把自己目录下的能删除的配置文件都删除,然后卸载重新安装fluxbox一次果然正常了。
回复