|
步骤如下:
mkdir /usr/share/fonts/truetype/windows
cp simsun.ttc simhei.ttf tahomabd.ttf tahoma.ttf /usr/share/fonts/truetype/windows
chmod 644 /usr/share/fonts/truetype/windows/*
cp local.conf /etc/fonts/
进入gnome,点击菜单 系统-首选项-字体,选择字体渲染为单色。
美化完成,本方案对于LCD效果很好,CRT的英文效果差点,有锯齿的。
其中simsun.ttc simhei.ttf tahomabd.ttf tahoma.ttf这几个文件都是windows带的,local.conf文件内容如下:
- <?xml version="1.0"?>
- <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
- <fontconfig>
- <alias>
- <family>Tahoma</family>
- <family>SimSun</family>
- <default>
- <family>sans-serif</family>
- <family>serif</family>
- <family>monospace</family>
- </default>
- </alias>
- <alias>
- <family>serif</family>
- <prefer>
- <family>Tahoma</family>
- <family>SimSun</family>
- </prefer>
- </alias>
- <alias>
- <family>sans-serif</family>
- <prefer>
- <family>Tahoma</family>
- <family>SimSun</family>
- </prefer>
- </alias>
- <alias>
- <family>monospace</family>
- <prefer>
- <family>Tahoma</family>
- <family>SimSun</family>
- </prefer>
- </alias>
- <match target="pattern">
- <test name="weight" compare="more">
- <const>medium</const>
- </test>
- <test name="family" compare="eq">
- <string>SimSun</string>
- </test>
- <edit name="family" mode="assign">
- <string>SimHei</string>
- </edit>
- </match>
- <match target="font" >
- <test name="family" qual="any" >
- <string>SimHei</string>
- </test>
- <edit mode="assign" name="antialias" >
- <bool>true</bool>
- </edit>
- </match>
- </fontconfig>
复制代码
在LCD下的效果图见附件 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|