存档

文章标签 ‘雅黑’

字体美化:微软雅黑

2008年10月24日

先说说我的平台:Archlinux + GNOME2.24 / xfce4.4.2
在安装字体之前,首先要装好ubuntu版的cairo、fontconfig、freetype2、libxft。当然,你也可以使用lcd版的,但我个人觉得ubuntu的比lcd的显示效果要好。下面是AUR上的链接

在vista上M$启用了不少新字体,但由于版权的问题,我这里就不提供了,有兴趣的Google之。

  1. Segoe UI 为 Vista 新英文 UI ClearType 字体
  2. Sans Serif 字体: Calibri Candara Corbel
  3. Serif 字体: Cambria Constantia
  4. monospace 字体: Consolas
  5. Msyh + Msyh bold 为 Vista 新中文字体
  6. Msjh + Msjh Bold 为 Vista 新繁体中文字体
  7. Meiryo + Meiryo Bold 为 Vista 新日文字体
  8. Malgun Gothic + bold 为 Vista 新韩文字体

将以上的字体放到 /usr/share/fonts/vista 下,然后在该目录下执行

sudo mkfontdir
sudo mkfontscale

并在 /etc/X11/xorg.conf 里加入一行:

FontPath “/usr/share/fonts/vista”

最后创建字体缓存

 fc-cache -fv

确保 /etc/fonts/conf.d/ 下有 51-local.conf 这个文件,并确保里面的内容是

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
	<!-- Load local system customization file -->
	<include ignore_missing="yes">local.conf</include>
</fontconfig>

然后下载这个local.conf文件(box.net | MediaFile | DivShare),解压后放到 /etc/fonts/ 下。这个文件是很早以前从linuxsir.org论坛上收集的,不记得原作者是谁了,在此对原作者说声抱歉。好了,重启系统(或注销)吧。

然后打开GNOME面板的“系统”—“首选项”—“外观”,选择“字体”—“细节”,按照下图设置


screenshot10.png

不用去改默认的字体,保持默认的Sans即可。怎样?效果还不错把。下面是我的一些截图。
nautilus截图


nautilus截图

日文字体


日文字体

中文字体


中文字体

shareitem.org在firefox下的截图


shareitem.org在firefox下的截图

163.com在firefox下的截图


163.com在firefox下的截图

Desktop , , ,