红联Linux门户
Linux帮助

Fedora 8中ThunderBird和firefox使用雅黑字体

发布时间:2007-11-16 10:42:47来源:红联作者:lication
简单的配置就是在首选项中设置好使用雅黑字体,网页和邮件就基本上已经全部可用雅黑来显示了

但是菜单栏和插件栏仍然是原来的字体,很不雅观,这时使用如下方法:

分别找到在你的主目录下找到.mozilla/firefox/hhiszzo7.default/chrome和/home/xelnaga/.thunderbird/yk0zvgpc.default/chrome目录

没有的话就新建一个。

然后分别在这两个目录中新建同一文件userChrome.css

配置文件比较简单,用于指定字体种类和大小,很容易看懂,如果想使用其他字体,可以参照修改[code]/*
* 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/gatekeeper/there.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
*/[/code]最后,重新启动程序,就可以了!

在Fedora 8系统环境下通过!

gcell - http://gcell.blog.163.com/
文章评论

共有 4 条评论

  1. gxf 于 2007-11-16 14:33:59发表:

    默认的温泉字体还将就用着

  2. lidin999 于 2007-11-16 12:32:53发表:

    引用:
    原帖由 marco.chan 于 2007-11-16 12:26 发表


    雅黑字体又不是最舒服的字体~

    嘿嘿~~刚从那里爬出来的人,习惯了用那个字体;由此可以看到有点软的东西害人不浅

  3. marco.chan 于 2007-11-16 12:26:49发表:

    引用:
    原帖由 lidin999 于 2007-11-16 11:11 发表
    好像现在很多LINUX 人都拒绝公开讨论YAHEI的问题,据说容易给WIN的死党留下口实


    雅黑字体又不是最舒服的字体~

  4. lidin999 于 2007-11-16 11:11:36发表:

    好像现在很多LINUX 人都拒绝公开讨论YAHEI的问题,据说容易给WIN的死党留下口实