菜鸟问个问题~关于装字体~

系统字体配置、中文显示和输入法问题
回复
头像
elpt1991
帖子: 98
注册时间: 2008-04-28 12:13

菜鸟问个问题~关于装字体~

#1

帖子 elpt1991 » 2008-10-19 18:37

我用的方法是搜到的:

代码: 全选

sudo mkdir /usr/share/fonts/yahei

sudo cp [路径+*.ttf] /usr/share/fonts/yahei

sudo chmod 644 /usr/share/fonts/yahei/*.ttf
4、最后,开始安装:

代码: 全选

cd /usr/share/fonts/yahei/
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv sudo fc-cache -fv
我想问的是:以后我还想把其他字体安装在/usr/share/fonts/yahei里时,还需要再重新执行一遍这个么?

代码: 全选

cd /usr/share/fonts/yahei/
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv sudo fc-cache -fv
hbolive
帖子: 89
注册时间: 2008-04-24 20:01

Re: 菜鸟问个问题~关于装字体~

#2

帖子 hbolive » 2008-10-19 18:44

以后不換目錄
sudo cp [路径+*.ttf] /usr/share/fonts/yahei
sudo fc-cache -fv,就這兩步囉!
头像
HuntXu
帖子: 5776
注册时间: 2007-09-29 3:09

Re: 菜鸟问个问题~关于装字体~

#3

帖子 HuntXu » 2008-10-19 18:48

放到./fonts下并更新字体缓存即可
HUNT Unfortunately No Talent...
头像
elpt1991
帖子: 98
注册时间: 2008-04-28 12:13

Re: 菜鸟问个问题~关于装字体~

#4

帖子 elpt1991 » 2008-10-19 20:20

万分感谢!
回复