LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 550|回复: 1

调整默认中文字体的 最简单的方法

[复制链接]
发表于 2008-6-22 20:51:52 | 显示全部楼层 |阅读模式
修改
/etc/fonts/conf.avail/49-sansserif.conf
把里面的
sans-serif和serif都改成你想要的中文字体名
前提是此中文字体系统可用

修改前记得备份

例如:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
  If the font still has no generic name, add sans-serif
-->
        <match target="pattern">
                <test qual="all" name="family" compare="not_eq">
                        <string>微软雅黑</string>
                </test>
                <test qual="all" name="family" compare="not_eq">
                        <string>微软雅黑</string>
                </test>
                <test qual="all" name="family" compare="not_eq">
                        <string>monospace</string>
                </test>
                <edit name="family" mode="append_last">
                        <string>微软雅黑</string>
                </edit>
        </match>
</fontconfig>
发表于 2008-6-22 21:32:24 | 显示全部楼层
系统自带的已经可以接受了。没有必要再换字体了
回复 支持 反对

使用道具 举报

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

本版积分规则

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