热门关键字:  ubuntu  分区  linux系统进程  函数  Fedora

当前位置 :| 主页>Linux发行版>Gentoo>

Gentoo 的中文化

来源: 作者: 时间:2007-02-02 Tag: 点击:

1. 首先复制WindowsXP下的3个字体。

# cp simsun.ttf tahoma.ttf verdana.ttf /usr/share/fonts/TTF
2. 然后
# fc-cache
3.新建100locale 加入环境变量:
# nano -w /etc/env.d/100locale
LANG="zh_CN.GBK"
LC_ALL="zh_CN.GBK"
4.在~/.xinitrc 中加入:(顺便加入输入法的支持)
export LANG=zh_CN.GBK
export LC_ALL=zh_CN.GBK
export LC_CTYPE=zh_CN.GBK
export XIM=fcitx
export XMODIFIERS="@im=fcitx"
export XIM_PROGRAM=fcitx
export GTK_IM_MODULE=fcitx
fcitx&
exec startxfce4

5. 在这里我引用了我BSD下的一个字体相关文件 .fonts.conf 把她放在自己的根目录下即可拉!这样字体效果会好不少。

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
        <!-- for simsun.ttf -->
        <match target="font">
                <test name="family"><string>SimSun</string></test>
                <edit name="antialias"><bool>true</bool></edit>
                <edit name="hinting"><bool>true</bool></edit>
                <edit name="autohint"><bool>false</bool></edit>
        </match>
 
        <match target="font">
                <test name="family"><string>NSimSun</string></test>
                <edit name="antialias"><bool>true</bool></edit>
                <edit name="hinting"><bool>true</bool></edit>
                <edit name="autohint"><bool>false</bool></edit>
        </match>
 
        <match target="font">
                <test name="family"><string>SimSun</string></test>
                <test name="size" compare="less_eq"><int>16</int></test>
                <edit name="antialias" mode="assign"><bool>false</bool></edit>
                <edit name="hinting" mode="assign"><bool>true</bool></edit>
        </match>

        <match target="font">
                <test name="family"><string>NSimSun</string></test>
                <test name="size" compare="less_eq"><int>16</int></test>
                <edit name="antialias" mode="assign"><bool>false</bool></edit>
                <edit name="hinting" mode="assign"><bool>true</bool></edit>
        </match>
                                                                              
        <match target="font">
                <test name="family"><string>NSimSun</string></test>
                <edit name="globaladvance"><bool>false</bool></edit>

最新评论共有 4 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册