Re: [m17n] japanese fonts in firefox revisited,resolved
Update:
I found that under my recent install, Unicode pages
that did not specify
<html lang="ja">
do no render kanji when printing -- only boxes
instead.
However, pages that specified <html lang="ja"> did
render correctly, as did pages in EUC-JP encoding even
when the lang="jp" tag was not specified.This made me
think printing was broken because I was testing using
google.co.jp, which does not specify lang="ja" in
their header.So in fact I had some Japanese printing
functionality all along during my latest install.
On the other hand, I had google.co.jp printing kanji
OK on my previous install so I figured it had
something to do with the locale settings. After some
experimenting I came up with the following:
LC_LANG=en_US.UTF-8
LC_CTYPE=ja_JP.UTF-8
LC_ALL=ja_JP.UTF-8
This gives me menus in English, Japanese web pages
that don't specify <html lang="jp"> render/print in
Japanese, and also maintains UIM/SCIM functionality,
which in my case is everything I had hoped for.
BTW the above locale settings were set in YAST
System /etc/sysconfig Editor
system/environment/language section and entered by
hand.
My version of firefox doesn't have font enabling
enabled and changing the font.FreeType2.printing
parameter in about:config doesn't seem to produce an
embedded ps file. So I guess I'll just fix up GS to
use fonts I like. But for me, this is but a bit
frosting on an already very tasty cake.
Mike
--- Mike Shegedin
"Mike Shegedin"
����Ͻޤ���: This time, I'm guessing that font embedding is enabled -- that is, FF is embedding the fonts into the
file
when printing because GS doesn't complain about missing fonts.
Check whether Firefox is embedding fonts with:
mike@kibou:~$ grep -i beginresource mozilla.ps %%BeginResource: CMap IPAPMincho.Regular.0.0_cmap %%BeginResource: CIDFont IPAPMincho.Regular.0.0 %%BeginResource: CMap IPAPGothic.Regular.0.0_cmap %%BeginResource: CIDFont IPAPGothic.Regular.0.0 mike@kibou:~$
If it is embedding fonts, you should find lines beginning with "%%BeginResource" which also contain the name of
--- Mike FABIAN
wrote: ps the font which was embedded.
I'm curious to know what turns font embedding on and off when printing from FF.
Type
about:config
into the URL entry widget of Firefox. You see a long list of configuration options. Enter "printing" into the "Filter" entry widget.
You will see an option
font.FreeType2.printing
which may be false or true.
If you set it to true, Firefox will usually embed fonts when printing, if you set it to false, it will usually not embed fonts when printing.
Usually because it may depend on how your Firefox was compiled.
I attempted changing this parameter and there is no change on the output. I first tried it on an English version of FF1.0.1 and then a Japanse version of 1.0. Both behave exactly the same. They load the Nimbus fonts but there is no reference or seemingly any attempt at loading japanese fonts.
While I'm at it, do qtconfig settings have any bearing on any of this?
qtconfig has nothing to do with Firefox because Firefox is not a Qt application.
Thanks for clearing this point up. One less thing for me to futz with.
The ps file currently being generated has lots of Numbus fonts which clearly are not Japanese fonts.
That's OK because the page you are trying to print most likely also contains some Latin glyphs.
BTW I have wrappers generated for all of my installed Japanese fonts, so I think that as long as GS had a file with Japanese text and refered to a Japanese font then I would be in business.
To use that possibility, you can set
font.FreeType2.printing
to false.
As I said earlier, I tried this and it had no change on the output. The resulting ps file is the same size regardless of the value. (I wonder if I should be doing something to make the setting have an affect.)
Any other ideas, Mike?
Mike
__________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/
-- To unsubscribe, e-mail: m17n-unsubscribe@suse.com For additional commands, e-mail: m17n-help@suse.com
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
participants (1)
-
Mike Shegedin