Ubuntu使用微软雅黑字体

实践环境:Ubuntu7.04

相关下载:雅黑字体文件(下载)

实践准备:~/Downloads/fonts/目录下有msyh.ttf

操作步骤:
1、sudo mkdir /usr/share/fonts/truetype/chinese
(创建任何名称目录以存放雅黑字体文件)
2、cd /usr/share/fonts/truetype/chinese
(进入刚创建的chiese目录)
3、sudo cp ~/Downloads/fonts/*
(复制字体文件到当前目录下)
4、sudo chmod 644 /usr/share/fonts/*
(修改雅黑字体文件的权限为644,即当前用户读写,当前组用户读写,其他用户只读)
5、sudo mkfontscale
(创建雅黑字体的fonts.scale文件,它用来控制字体旋转缩放)
6、sudo mkfontdir
(创建雅黑字体的fonts.dir文件,它用来控制字体粗斜体产生)
7、sudo fc-cache ./
(建立字体缓存信息,也就是让系统认识认识雅黑)
8、sudo gedit /etc/fonts/language-selector.conf
(打开语言选择设置文件)
分别找到
Bitstream Vera Serif
Bitstream Vera Sans
Bitstream Vera Sans Mono
分别添加
Microsoft YaHei
9、注销或重启系统
10、设置字体选项:
对系统──首选项──字体──配置
对firefox──编辑──首选──字体──配置
对opera──工具首选项──网页──字体等──配置

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You can use BBCode tags in the text.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
5 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.