欢迎使用 Mozilla 1.7 for Sun Java ™ Desktop System
(Solaris 操作系统版)

如何从 Mozilla 打印非西文字体的 Web 页


包含非西文字体的网页有时可能无法正常打印,使用 TrueType 打印可以解决此问题。

什么是 TrueType 打印?

Mozilla 使用 FreeType 库将 True Type 字体转换成 CID type 1 字体。然后再将 CID Type 1 字体嵌入到 postscript 文件中。

如何设置 TrueType 打印?

缺省情况下,禁用 TrueType 打印功能。如下所示,通过设置位于 greprefs/all.js 的 all.js 文件中的首选项可以启用 TrueType 打印。

1. 将首选项 "font.FreeType2.printing" 设置为 true。请注意此功能需要 freetype2 库的支持。

2. 将首选项 "font.FreeType2.shared-library" 设置为 freetype 库路径。

all.js 文件中还需要包括每个字体集的路径。

您可以将搜索新的 True Type 字体的路径添加到 all.js 文件中。

以下为缺省设置:

pref("font.directory.truetype.1", "/usr/X/lib/locale/zh/X11/fonts/TrueType");
pref("font.directory.truetype.2", "/usr/X/lib/locale/zh.GBK/X11/fonts/TrueType");
pref("font.directory.truetype.3", "/usr/X/lib/locale/zh_CN.EUC/X11/fonts/TrueType");
pref("font.directory.truetype.4", "/usr/X/lib/locale/zh_CN.GB18030/X11/fonts/TrueType");
pref("font.directory.truetype.5", "/usr/X/lib/locale/zh_TW/X11/fonts/TrueType");
pref("font.directory.truetype.6", "/usr/X/lib/locale/zh_TW.BIG5/X11/fonts/TT");

要添加一个新字体路径,请使用与下面相同的格式:
pref("font.directory.truetype.<编号>", "< 路径/文件夹位置>");

对于韩语即为:
pref("font.directory.truetype.7", "/usr/X/lib/locale/ko/X11/fonts/TrueType ");