From: Eric Dorland <[EMAIL PROTECTED]> To: Tony Ma <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: Bug#305146: firefox unable to print CJK characters Date: Sun, 1 May 2005 18:29:11 -0400
* Tony Ma ([EMAIL PROTECTED]) wrote:
> Hi Eric,
>
> >* Tony Ma ([EMAIL PROTECTED]) wrote:
> >> Package: mozilla-firefox
> >> Version: 1.0.2-3
> >> Severity: important
>
> >> pref("font.FreeType2.enable", true);
> >pref("font.directory.truetype.1","/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/");
> >
> >Why did use those particular configuration lines? Where is the
> >documentation on them? There's also font.Freetype2.printing, set to
> >true. Shouldn't that help?
>
> As in
> http://moto.debian.org.tw/viewtopic.php?t=2751
Not being able to read Chinese, this page is not a lot of help.
> http://www.mozilla.org/projects/fonts/unix/enabling_truetype.html
Alright, but don't these instructions predate Xft support in Mozilla? Shouldn't that take care of that case?
> First, you REALLY need to enable freetype2 MANUALLY by typing
> pref("font.FreeType2.enable", true);
> in firefox.js, (note: just adding the line pref("font.FreeType2.printing",
> true); is NOT enough) and this line pref("font.FreeType2.enable", true);
> does NOT currently exist in the firefox.js in the current firefox package.
>
> Then you need to specify the directories of your truetype fonts with one
> line per directory)
>
> pref("font.directory.truetype.number","directory of font"); where number
> can be 1,2,3........
>
> For a standard Debian sarge installation with CJK environment and desktop
> tasks selected (and the package ttfprint must also be selected),
> /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/
> can be used by firefox for the purpose of CJK printing. Therefore we can
> add this line:
>
> pref("font.directory.truetype.1","/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/");
>
> in firefox.js to tell firefox to use this directory when looking up for
> fonts for printing.
>
> The two lines I've mentioned in the previous mail comes from instructions
> for firefox CJK printing in the webpage
>
> http://www.debian.org.hk/node/12495#comment-574
>
> I hope the explanations above will clarify the functions of the two lines,
> but please feel free to ask me again if you have any problems.
Ok, this is interesting, but lets backtrack for a moment. What printer subsystem are you using? (CUPS, lprng, etc) Are you trying to print using the Postscript or Xprint renderer? (I doubt the postscript on will work)
--
I am using the cupsys system and I have both postscript and Xprint installed. I have tried XPrint with the ORIGINAL firefox.js file from your original package, but XPrint really sucks in Debian Sarge and it takes more than 5 min to print a page!! XPrint is not zet mature in Debian Sarge since Sarge is still using XFree86 instead of X.org 6.8, which has a much better XPrint renderer.
Therefore normally I use postscript to print my webpages and it works PERFECTLY, except that you have to add the line in firefox.js to enable freetype
pref("font.FreeType2.enable", true);and specify the font directory, which in Debian Sarge, is:
pref("font.directory.truetype.1","/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/");in order to allow CJK printing under Postscript renderer and CUPS.
In conclusion, it is the XPrint in XFree86 which sucks and we should use postscript instead and we must tell firefox.js to enable freetype2 and specify the font directory in order to allow printing of CJK fonts.
Tony Ma
_________________________________________________________________ Discover fun and games at @ http://xtramsn.co.nz/kids
-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

