QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1825|回复: 11

Firefox 程序的界面字体很小,怎么修改呢

[复制链接]
发表于 2005-8-10 20:59:55 | 显示全部楼层 |阅读模式
lfs6.0 blfs6.0

设置了 locale 为zh_CN.gb2312,firefox的程序字体如菜单栏的字体很小,
Firefox1.0按照blfs6.0安装的

我想Firefox是基于gtk2的,所以试着修改了/etc/gtk-2.0/gtkrc 文件如下:

style "default"
{
font_name = "helvetica,simsun,sans 12"
}
widget_class "*" style "default"


把12改为14还是无效,xfce的字体却已经变得很大

请问该怎么修改呢,谢谢
 楼主| 发表于 2005-8-10 21:01:10 | 显示全部楼层
哦,对了

firefox是英文版的,是不是有关系呢
回复

使用道具 举报

发表于 2005-8-10 21:31:43 | 显示全部楼层
修改~/.gtkrc-2.0看看。
回复

使用道具 举报

发表于 2005-8-10 23:50:29 | 显示全部楼层
style "user-font"
{
font_name="helvetica,simsun 12"
}
widget_class "*" style "user-font"

gtk-font-name="helvetica,simsun 12"


echo $GTK2_RC_FILES
然后修改以上命令结果里的任一文件即可。如果上面命令没有输出的话,就
export GTK2_RC_FILES=/etc/gtk-2.0/gtkrc
也可以加到/etc/profile里,让每次启动都加载。如果你用bash的话
回复

使用道具 举报

发表于 2005-8-11 20:30:49 | 显示全部楼层
没有用的
mozilla的字体处理是相对独立的
像openoffice

修改这个文件~/.mozilla/firefox/k9swpmta.default/chrome/userChrome.css
其中目录k9swpmta.default,每个人都不一样,请相应的修改
下面是一个例子
[code:1]
menubar > menu, menubar, menubutton, menulist, menuitem {
    font-size: 14px !important;
    font-family: sans-serif !important;
}

menupopup > * {
    font-size: 14px !important;
    font-family: sans-serif !important;
}

#urlbar {
    font-size: 14px !important;
    font-family: sans-serif !important;
}

#ubhist-popup > .popup-internal-box, .textfield-popup > .popup-internal-box {
    font-size: 14px !important;
    font-family: sans-serif !important;
}

dialog, box, button, page, label, caption, textbox, input, select {
    font-size: 14px !important;
    font-family: sans-serif !important;
}

window {
    font-size: 14px !important;
    font-family: sans-serif !important;
}

#sidebar {
    font-size: 14px !important;
    font-family: sans-serif !important;
}
[/code:1]
回复

使用道具 举报

发表于 2005-8-11 22:04:57 | 显示全部楼层
mozilla用的不是xft?!
回复

使用道具 举报

发表于 2005-8-11 22:58:11 | 显示全部楼层
我的意思是显示程序ui的字体时,mozilla,firefox不会理/etc/gtk-2.0/gtkrc的
注意lz说的是菜单栏

怎么扯到xft去了,呵呵
openoffice离了X也不行阿,呵呵
回复

使用道具 举报

发表于 2005-8-11 23:17:55 | 显示全部楼层
mozilla用的gtk2,怎么会不理会变量GTK2_RC_FILES阿?!
回复

使用道具 举报

发表于 2005-8-11 23:40:21 | 显示全部楼层
you may try it out yourself
and then report the result here, if you like
回复

使用道具 举报

发表于 2005-8-12 12:10:01 | 显示全部楼层
可能我以前的字体问题可以利用这个解决!
zhllg兄帮我看看,觉得是否可能,我再啃英文文档中……
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=126468
回复

使用道具 举报

发表于 2005-8-12 12:25:50 | 显示全部楼层
你是说userChrome.css
这个文件只对firefox的ui里的字体管用

你那个问题,已经有人说了
不知道你有没有试
就是不要指定sans,serif这样的字体
指定具体的字体
比如verdana
回复

使用道具 举报

发表于 2005-8-12 13:01:07 | 显示全部楼层
我试了,tag上的字体也正常了,但是似乎碰到utf8编码的网页还是会出现这种情况,在epiphany也有这个故障(当然我知道,epiphany也有自己的chrome定义)。。感觉mozilla这么做根本没什么必要。。。麻烦了。 :-(
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-10-2 06:30 , Processed in 0.056867 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表