1.把制作好的四个字体复制到 /usr/share/fonts 下
2.执行
ttmkfdir -d /usr/share/fonts -o /usr/share/fonts/fonts.scale
cp /usr/share/fonts/fonts.scale /usr/share/fonts/fonts.dir
3.更改 /etc/X11/XF86Config
在字体字段加入一行
FontPath "/usr/share/fonts"
类似于
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "/usr/local/share/fonts"
FontPath "unix/:7100"
如果你用的 X 是 xorg 的话就应改修改 xorg.conf
4.更改 /etc/X11/fs/config
在查找字体字段增加一行
/usr/share/fonts,
类似于
catalogue = /usr/share/fonts/zh_CN/TrueType,
/usr/share/fonts,
/usr/X11R6/lib/X11/fonts/korean,
5.编辑 /etc/gtk-2.0/gtkrc(这一步是为在 KDE 下 GTK2 的程序设置字体。如果你用的是 gnome 就不用修改,否则字体设置会不起作用)
加入
style "user-font"
{
font_name="Vera Sans YuanTi xx"
#xx表示字号的大小,你可以按你的需要自行设置
}
widget_class "*" style "user-font"
6.注销或者执行 init 3 或者按 ctrl+alt+backspace 退出 X
7.执行
fc-cache -fv
/etc/init.d/xfs restart
8.startx 或者 init 5 进入 X 后,在字体设置里选择 Vera Sans YuanTi,大小为 xx 即可
如果你想要类似 mac OS X 的那种粗粗黑黑的效果就编辑 /etc/fonts/fonts.conf
把以下内容加入(</FONTCONFIG> 前面)
<match target="font">
<test name="family"><string>Vera Sans YuanTi</string></test>
<edit name="globaladvance"><bool>false</bool></edit>
</match>
<match target="font">
<test name="family"><string>Vera Sans YuanTi Mono</string></test>
<edit name="globaladvance"><bool>false</bool></edit>
</match>
<match target="font">
<edit name="antialias"><bool>true</bool></edit>
<edit name="hinting"><bool>false</bool></edit>
<edit name="autohint"><bool>false</bool></edit>
</match>
如果你想要类似 windows 的那种清晰细腻的的效果就编辑 /etc/fonts/fonts.conf
把以下内容加入(</FONTCONFIG> 前面)
<match target="font">
<test name="family"><string>Vera Sans YuanTi</string></test>
<edit name="globaladvance"><bool>false</bool></edit>
</match>
<match target="font">
<test name="family"><string>Vera Sans YuanTi Mono</string></test>
<edit name="globaladvance"><bool>false</bool></edit>
</match>
<match target="font">
<edit name="antialias"><bool>true</bool></edit>
<edit name="hinting"><bool>false</bool></edit>
<edit name="autohint"><bool>false</bool></edit>
</match>
<match target="font">
<test name="pixelsize" compare="more_eq"><double>12</double></test>
<test name="pixelsize" compare="less_eq"><double>16</double></test>
<edit name="antialias"><bool>false</bool></edit>
<edit name="hinting"><bool>true</bool></edit>
<edit name="autohint"><bool>false</bool></edit>
</match>
接下来是我的.xinitrc配置文件
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#
# exec wmaker
# exec startkde
export LANG="zh_CN"
# export LANG="en_US"
export XMODIFIERS=@im=fcitx
env LC_CTYPE=zh_CN fcitx &
# exec icewm-session
exec fvwm
# exec gnome-session
# exec blackbox
# exec fluxbox
下面是我的/etc/fstab配置文件
当然之前先要创建好/c,/d,/e,/f
这是加载windows分区,并可以使之正常显示中文
/dev/hda1 /c vfat iocharset=gb2312,umask=0,codepage=936 1 0
/dev/hda5 /d vfat iocharset=gb2312,umask=0,codepage=936 1 0
/dev/hda6 /e vfat iocharset=gb2312,umask=0,codepage=936 1 0
/dev/hda7 /f vfat iocharset=gb2312,umask=0,codepage=936 1 0
我的/etc/X11/xorg.conf文件
请看http://hackersend.cnblogs.com/articles/283556.html
关于如何让xmms中文正确显示,只需改以下两行即可。
playlist_font=-*-*-medium-r-normal--16-*-*-*-*-*-gb2312.1980-0,*-r-*
mainwin_font=-adobe-helvetica-medium-r-*-*-8-*
2.执行
ttmkfdir -d /usr/share/fonts -o /usr/share/fonts/fonts.scale
cp /usr/share/fonts/fonts.scale /usr/share/fonts/fonts.dir
3.更改 /etc/X11/XF86Config
在字体字段加入一行
FontPath "/usr/share/fonts"
类似于
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "/usr/local/share/fonts"
FontPath "unix/:7100"
如果你用的 X 是 xorg 的话就应改修改 xorg.conf
4.更改 /etc/X11/fs/config
在查找字体字段增加一行
/usr/share/fonts,
类似于
catalogue = /usr/share/fonts/zh_CN/TrueType,
/usr/share/fonts,
/usr/X11R6/lib/X11/fonts/korean,
5.编辑 /etc/gtk-2.0/gtkrc(这一步是为在 KDE 下 GTK2 的程序设置字体。如果你用的是 gnome 就不用修改,否则字体设置会不起作用)
加入
style "user-font"
{
font_name="Vera Sans YuanTi xx"
#xx表示字号的大小,你可以按你的需要自行设置
}
widget_class "*" style "user-font"
6.注销或者执行 init 3 或者按 ctrl+alt+backspace 退出 X
7.执行
fc-cache -fv
/etc/init.d/xfs restart
8.startx 或者 init 5 进入 X 后,在字体设置里选择 Vera Sans YuanTi,大小为 xx 即可
如果你想要类似 mac OS X 的那种粗粗黑黑的效果就编辑 /etc/fonts/fonts.conf
把以下内容加入(</FONTCONFIG> 前面)
<match target="font">
<test name="family"><string>Vera Sans YuanTi</string></test>
<edit name="globaladvance"><bool>false</bool></edit>
</match>
<match target="font">
<test name="family"><string>Vera Sans YuanTi Mono</string></test>
<edit name="globaladvance"><bool>false</bool></edit>
</match>
<match target="font">
<edit name="antialias"><bool>true</bool></edit>
<edit name="hinting"><bool>false</bool></edit>
<edit name="autohint"><bool>false</bool></edit>
</match>
如果你想要类似 windows 的那种清晰细腻的的效果就编辑 /etc/fonts/fonts.conf
把以下内容加入(</FONTCONFIG> 前面)
<match target="font">
<test name="family"><string>Vera Sans YuanTi</string></test>
<edit name="globaladvance"><bool>false</bool></edit>
</match>
<match target="font">
<test name="family"><string>Vera Sans YuanTi Mono</string></test>
<edit name="globaladvance"><bool>false</bool></edit>
</match>
<match target="font">
<edit name="antialias"><bool>true</bool></edit>
<edit name="hinting"><bool>false</bool></edit>
<edit name="autohint"><bool>false</bool></edit>
</match>
<match target="font">
<test name="pixelsize" compare="more_eq"><double>12</double></test>
<test name="pixelsize" compare="less_eq"><double>16</double></test>
<edit name="antialias"><bool>false</bool></edit>
<edit name="hinting"><bool>true</bool></edit>
<edit name="autohint"><bool>false</bool></edit>
</match>
接下来是我的.xinitrc配置文件
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#
# exec wmaker
# exec startkde
export LANG="zh_CN"
# export LANG="en_US"
export XMODIFIERS=@im=fcitx
env LC_CTYPE=zh_CN fcitx &
# exec icewm-session
exec fvwm
# exec gnome-session
# exec blackbox
# exec fluxbox
下面是我的/etc/fstab配置文件
当然之前先要创建好/c,/d,/e,/f
这是加载windows分区,并可以使之正常显示中文
/dev/hda1 /c vfat iocharset=gb2312,umask=0,codepage=936 1 0
/dev/hda5 /d vfat iocharset=gb2312,umask=0,codepage=936 1 0
/dev/hda6 /e vfat iocharset=gb2312,umask=0,codepage=936 1 0
/dev/hda7 /f vfat iocharset=gb2312,umask=0,codepage=936 1 0
我的/etc/X11/xorg.conf文件
请看http://hackersend.cnblogs.com/articles/283556.html
关于如何让xmms中文正确显示,只需改以下两行即可。
playlist_font=-*-*-medium-r-normal--16-*-*-*-*-*-gb2312.1980-0,*-r-*
mainwin_font=-adobe-helvetica-medium-r-*-*-8-*
posted on
2005-11-24 13:50
nothingnothingnothingnothingnothingnothingnothingnothing
阅读(2878)
评论(0)
编辑
收藏
举报