LinuxSir.cn,穿越时空的Linuxsir!

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

文泉译的bdf字体怎么安装……

[复制链接]
发表于 2005-2-22 14:28:02 | 显示全部楼层 |阅读模式
我只是想知道哪里有文档,最好是E文的。在Xdefaults里面添加有什么作用,还有unifont字体是放在哪个位置的……

字体我放在 /usr/share/fonts/wqy-yhunifont/

evinmask@LinuxSky:/usr/share/fonts/wqy-yhunifont$ fc-list | grep unifont
yhunifont:style=Regular
evinmask@LinuxSky:/usr/share/fonts/wqy-yhunifont$ xset +fp /usr/share/fonts/wqy-yhunifont/

然后执行XMMS,可以显示中文了

然后退出GNOME,重新登陆,又不行了,还差哪一步
发表于 2005-2-22 15:39:34 | 显示全部楼层
  1. cp yhunifont.bdf /usr/share/fonts
  2. cd /usr/share/fonts
  3. ttmkfdir
  4. fc-cache -f
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-22 16:35:47 | 显示全部楼层
[PHP]
=========================================================
                   Wen Quan Yi yh-unifont
=========================================================

Installation

To install yhunifont, first, extract the package, it will
create a sub-directory "wqy-yhunifont"; you can move this
folder to any preferred location, we suggest you putting it
underneath /usr/local/share/fonts/ (if you have root
privilage). Then you can navigate into "wqy-yhunifont"
directory and type

     mkfontdir .

a new file named "fonts.dir" will be created, then you can
add this path to your X server font path by

    xset +fp /path/to/wqy-yhunifont

then, type "xlsfonts | grep yhunifont", you should be able
to see the full name of the font. If nothing is printed,
something must be wrong and you have to go back and check.

If you are using fontconfig, you need to use

    fc-cache /path/to/wqy-yhunifont

to create a file named "fonts.cache-1" as well as to update
the system font information.

To use yhunifont as the bitmap preview font in fontforge,
simply add the following line in ~/.Xdefaults

    fontforge.FontView.FontFamily: yhunifont

then type

    xrdb ~/.Xdefaults

to activate this setting.
[/PHP]

安装了,在XMMS里面无法选择文泉译字体
我是把字体放在/usr/share/fonts/wqy-yhunifont 下面的,在Gnome桌面首选项中,字体可以看到文泉译的字体
回复 支持 反对

使用道具 举报

发表于 2005-2-22 16:45:13 | 显示全部楼层
cp yhunifont.bdf  /usr/X11R6/lib/X11/fonts/misc/
cd  /usr/X11R6/lib/X11/fonts/misc/
mkfontdir
xst fp


然后 XMMS 这些就可以选择了

建议直接填字体名称 , 不要用 XMMS 选
字体名称是 -wqy-yhunifont-medium-r-normal--16-160-75-75-c-80-iso10646-1



另外
修改  /etc/gtk/gtkrc.utf-8

[php]
style "gtk-default-utf8" {
       fontset = "-wqy-yhunifont-medium-r-normal--16-160-75-75-c-80-iso10646-1,\
"
}
class "GtkWidget" style "gtk-default-utf8"

[/php]
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-22 17:00:26 | 显示全部楼层
我用的gdm登陆x,设置了以后,只能用一次,重新起动gnome以后就不能用了
回复 支持 反对

使用道具 举报

发表于 2005-2-22 17:10:02 | 显示全部楼层
我想先bdftopcf一下,然后再压缩比较好吧??
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-22 17:21:49 | 显示全部楼层
顶,看看……
回复 支持 反对

使用道具 举报

发表于 2005-2-22 19:45:49 | 显示全部楼层
我不是说了这个吗

cp yhunifont.bdf /usr/X11R6/lib/X11/fonts/misc/
cd /usr/X11R6/lib/X11/fonts/misc/
mkfontdir
xst fp



照这个做 !
回复 支持 反对

使用道具 举报

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

本版积分规则

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