简单的配置就是在首选项中设置好使用雅黑字体,网页和邮件就基本上已经全部可用雅黑来显示了
但是菜单栏和插件栏仍然是原来的字体,很不雅观,这时使用如下方法:
分别找到在你的主目录下找到.mozilla/firefox/hhiszzo7.default/chrome和/home/xelnaga/.thunderbird/yk0zvgpc.default/chrome目录
没有的话就新建一个。
然后分别在这两个目录中新建同一文件userChrome.css
配置文件比较简单,用于指定字体种类和大小,很容易看懂,如果想使用其他字体,可以参照修改,
引用:
/*
* Edit this file and copy it as userChrome.css into your
* profile-directory/chrome/
*/
/*
* This file can be used to customize the look of Mozilla's user interface
* You should consider using !important on rules which you want to
* override default settings.
*/
/*
* Do not remove the @namespace line -- it's required for correct functioning
*/
@namespace url("http://www.mozilla.org/keymaster ... is.only.xul"); /* set default namespace to XUL */
/*
* Some possible accessibility enhancements:
*/
* {
font-size: 10pt !important;
}
* {
font-family: Microsoft YaHei !important;
}
/*
* Make all the default font sizes 20 pt:
*
* * {
* font-size: 20pt !important
* }
*/
/*
* Make menu items in particular 15 pt instead of the default size:
*
* menupopup > * {
* font-size: 15pt !important
* }
*/
/*
* Give the Location (URL) Bar a fixed-width font
*
* #urlbar {
* font-family: monospace !important;
* }
*/
/*
* Eliminate the throbber and its annoying movement:
*
* #throbber-box {
* display: none !important;
* }
*/
/*
* For more examples see http://www.mozilla.org/unix/customizing.html
*/
最后,重新启动程序,就可以了!
Update:
如果文本框和按钮字体依然没有改变,需要修改同一目录下的userContent.css文件,加入一下内容,如果没有新建即可:
引用:
* {
font-family: Microsoft YaHei !important;
}
在Fedora 8系统环境下通过!