CentOS工作机-增加字体

一般是拷贝windows到字体到linux中,注册使用。

在系统字体目录建立msfonts子目录用于存新增到字体文件

# mkdir /usr/share/fonts/msfonts

# cp /mnt/c/Windows/Fonts/msyh* /usr/share/fonts/msfonts/

# cp /mnt/c/Windows/Fonts/consola*.ttf /usr/share/fonts/msfonts/

# cp /mnt/c/Windows/Fonts/simhei.ttf /usr/share/fonts/msfonts/

# cp /mnt/c/Windows/Fonts/simsunb.ttf /usr/share/fonts/msfonts/

修改系统到字体配置文件,添加新增到字体目录到配置文件中

# vi /etc/fonts/fonts.conf

在<dir>/usr/share/fonts</dir>后,增加:<dir>/usr/share/fonts/msfonts</dir>

OK,好了,可以在eclipse和浏览器中制定字体里。

猜你喜欢

转载自acooly.iteye.com/blog/1973437
今日推荐