开发进行时...

crazy coder

Avatar

Ubuntu系统美化--借用 Vista字体

步一:在/usr/share/fonts下创建新目录vista

sudo mkdir /usr/share/fonts/vista


步二:更改vista目录的属主

sudo chown 你的用户名 /usr/share/fonts/vista


步三:将微软系统字体copy到vista目录下

cd vista字体所在的目录(可能位置是/media/sda1/WINDOWS/fonts)
cp * /usr/share/fonts/vista


步四:编辑X配置文件

sudo gedit /etc/X11/xorg.conf


进行以下的修改,注意粗体部分。。。

Section "Files"
FontPath "/usr/share/fonts/vista"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
# path to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "/usr/share/fonts/wenquanyi/wqy-bitmapfont/"
EndSection

步五:重建字体缓冲信息

fc-cache -fv


步六:编辑语言选择配置文件

sudo gedit /etc/fonts/language-selector.conf


前部分进行以下的修改,注意粗体部分。。。


<alias>
<family>serif</family>
<family>Microsoft YaHei</family>
<prefer>
<family>Microsoft YaHei</family>

<family>Bitstream Vera Serif</family>
<family>DejaVu Serif</family>
<family>AR PL ShanHeiSun Uni</family>
<family>WenQuanYi Bitmap Song</family>
<family>AR PL ZenKai Uni</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<family>Microsoft YaHei</family>
<prefer>
<family>Microsoft YaHei</family>

<family>Bitstream Vera Sans</family>
<family>DejaVu Sans</family>
<family>AR PL ShanHeiSun Uni</family>
<family>WenQuanYi Bitmap Song</family>
<family>AR PL ZenKai Uni</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<family>Microsoft YaHei</family>
<prefer>
<family>Microsoft YaHei</family>

<family>Bitstream Vera Sans Mono</family>
<family>DejaVu Sans Mono</family>
<family>AR PL ShanHeiSun Uni</family>
<family>WenQuanYi Bitmap Song</family>
<family>AR PL ZenKai Uni</family>
</prefer>
</alias>


步七:新字体的应用。转到[系统]->[首选项]->[字体],在其中选择喜欢的字体即可。

评论已关闭