Ervin Yan's Weblog

Ervin Yan's Weblog

全部分类 | General | Java | Music
« First evaluation of... | Main | TODO lists for IIIMF... »

20050301 星期二 2005年03月01日

Mozilla Type1 printing. Currently, mozilla support Fontconfig/Freetype printing, that's to say, mozilla use fontconfig to get font information, use freetype to extract the glyph, then format the glyphs as subseted CID-keyed fonts(defined as type 9 format in Acrobat documentations), finally embed the CID-keyed fonts into PS file. with this feature, mozilla have the following printing features: 1. Support all languages, include CJK/Thai/Hindi/Arabic.. 2. support WYSIWYG, mozilla use the fonts of display for printing. more details, see bug: http://bugzilla.mozilla.org/show_bug.cgi?id=190031 but another problem happened, the mozilla generated ps files is with postscript level 3 since it embeded CID-keyed fonts, some printers only support postscript level 1, and could not print level 3 ps file directly. To solve this problem, there are the following solutions: 1. Add filter in printer systems. do ps2ps to convert the postscript level 3 ps file to postscript level 1. CUPS already add specific "pswrite" filter for Mozilla to do this job. This solution need add filters in all kinds of printing systems, such as CUPS, LPRng, OpenPrinting. 2. Generate postscript level 1 ps file directly. Gnome generate ps file with Type42, StarOffice/OpenOffice generate ps file with Type3, after do comparison, Mozilla decide to generate ps file with Type1. more details, see bug: https://bugzilla.mozilla.org/show_bug.cgi?id=234182 ( 2005年03月01日, 12:02:58 下午 CST ) Permalink 评论 [0]

反向跟踪 URL: http://blogs.sun.com/eyan/entry/mozilla_type1_printing
评论:

发表一条评论:

姓名:
电子邮件地址:
URL:

您的评论:

HTML语法: 禁用