[ Home | Freetime works | FreeBSD | KFUG ]
After some discussion in mozilla-i18n mailing list(or netscape.public.mozilla.i18n), based on the Liu Hai's unofficial work done for Netscape, this plan is started.
In Unix, PostScript is widely accepted printing solution. Although it supports Non-latin1 fonts in several ways(Type 1, 0, 3, CID, OCF), we always suffer from the fundamental problem - "This font is not my printer!". Widely used latin-1 font(Times, Courier, Helvetica, etc) is on every PostScript printer, but other encoding fonts aren't(e.g. I have no chance to see the printers have CJK PS font yet). If the printer have some additional memory or disks, you can download the fonts to the printer and use it, but the printer can do this is a few. Ghostscript is a good solution for this(it is user-level program so you can add/remove fonts, and you can print out PS document to non-PS printers), but Mozilla cannot assume the existence of ghostscript(Mozilla should work without relying on other applications, I think).
# cd MOZILLA-SOURCE/mozilla # gunzip /some/dir/moz-xlate-xxxx.diff.gz # patch < /some/dir/moz-xlate-xxxx.diffand build Mozilla as usual. You may have to install X resource file(Netscape-export.ad) to appropriate X application resource directory(or one of the paths specified by XAPPLRESDIR variable).
# cp cmd/xfe/And don't forget to edit the resource file. You can alter the font name, AFM file directory, and other thing. You should uncomment the setup for each encoding to use it. See examples in Netscape.ad..OBJ/Netscape-export.ad \ /usr/X11R6/lib/X11/app-defaults/Netscape (otherwise the directory you can use)
! ! ISO-8859-2 sample: ! You can get latin-2 Type 1 fonts from: ! ftp://ftp.osb.hu/pub/misc/fonts/local/latin-2/ ! Get l2afm005.zip and l2pfb005.zip. ! *documentFonts.iso-8859-2*pscode: iso-8859-2 *documentFonts.iso-8859-2.variable.normal*psname: TimesNewRomanL2 *documentFonts.iso-8859-2.variable.normal*psafmfile: /usr/local/lib/mozilla/fonts/Type1/tnrl2___.afm *documentFonts.iso-8859-2.variable.bold*psname: TimesNewRomanL2-Bold *documentFonts.iso-8859-2.variable.bold*psafmfile: /usr/local/lib/mozilla/fonts/Type1/tnrl2b__.afm *documentFonts.iso-8859-2.variable.italic*psname: TimesNewRomanL2-Italic *documentFonts.iso-8859-2.variable.italic*psafmfile: /usr/local/lib/mozilla/fonts/Type1/tnrl2i__.afm *documentFonts.iso-8859-2.variable.boldItalic*psname: TimesNewRomanL2-BoldItalic *documentFonts.iso-8859-2.variable.boldItalic*psafmfile:/usr/local/lib/mozilla/fonts/Type1/tnrl2bi_.afm *documentFonts.iso-8859-2.fixed.normal*psname: CourierNewL2 *documentFonts.iso-8859-2.fixed.normal*psafmfile: /usr/local/lib/mozilla/fonts/Type1/cnl2____.afm *documentFonts.iso-8859-2.fixed.bold*psname: CourierNewL2-Bold *documentFonts.iso-8859-2.fixed.bold*psafmfile: /usr/local/lib/mozilla/fonts/Type1/cnl2b___.afm *documentFonts.iso-8859-2.fixed.italic*psname: CourierNewL2-Italic *documentFonts.iso-8859-2.fixed.italic*psafmfile: /usr/local/lib/mozilla/fonts/Type1/cnl2i___.afm *documentFonts.iso-8859-2.fixed.boldItalic*psname: CourierNewL2-BoldItalic *documentFonts.iso-8859-2.fixed.boldItalic*psafmfile: /usr/local/lib/mozilla/fonts/Type1/cnl2bi__.afm ! ! EUC-KR sample: ! *documentFonts.EUC-KR*pscode: EUC-KR *documentFonts.EUC-KR.variable.normal*psname: Munhwa-Regular-KSC-EUC-H *documentFonts.EUC-KR.variable.normal*psmetric: 1000 1000 990 -10 *documentFonts.EUC-KR.variable.bold*psname: Munhwa-Regular-KSC-EUC-H *documentFonts.EUC-KR.variable.bold*psmetric: 1000 1000 990 -10 *documentFonts.EUC-KR.variable.italic*psname: Munhwa-Regular-KSC-EUC-H *documentFonts.EUC-KR.variable.italic*psmetric: 1000 1000 990 -10 *documentFonts.EUC-KR.variable.boldItalic*psname: Munhwa-Regular-KSC-EUC-H *documentFonts.EUC-KR.variable.boldItalic*psmetric: 1000 1000 990 -10 *documentFonts.EUC-KR.fixed.normal*psname: MunhwaGothic-Regular-KSC-EUC-H *documentFonts.EUC-KR.fixed.normal*psmetric: 1000 1000 990 -10 *documentFonts.EUC-KR.fixed.bold*psname: MunhwaGothic-Regular-KSC-EUC-H *documentFonts.EUC-KR.fixed.bold*psmetric: 1000 1000 990 -10 *documentFonts.EUC-KR.fixed.italic*psname: MunhwaGothic-Regular-KSC-EUC-H *documentFonts.EUC-KR.fixed.italic*psmetric: 1000 1000 990 -10 *documentFonts.EUC-KR.fixed.boldItalic*psname: MunhwaGothic-Regular-KSC-EUC-H *documentFonts.EUC-KR.fixed.boldItalic*psmetric: 1000 1000 990 -10You can edit psname, psmetric, psafmfile for your purpose.
$Id: index.shtml,v 1.1.1.1 2001/05/23 03:10:33 cjh Exp $
[ Home | Freetime works | FreeBSD | KFUG ]