[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: printing chinese in mozilla



On Wed, Oct 02, 2002 at 01:39:53PM +0800, Zou Min wrote:
> > > But still failed, even after I added 2 lines below in 
> > > "/usr/lib/mozilla/defaults/pref/unix.js":
> > > pref("print.postscript.nativefont.zh-CN",          "gb2312");
> > 
> > Are you sure? I think it should be nativecode here.
> 
> Oops. 
> But after I tried adding either this:
> pref("print.postscript.nativecode.zh-CN",          "gb2312");
> pref("print.postscript.nativefont.zh-CN",          "BousungEG-Light-GB-EUC-H")

This should be ok. I have my user_pref set in 
~/.mozilla/XXX/#@#/prefs.js

> 
> I still can't get it work.

If the ps file it printed has these lines:
/Unicode2NativeDictzh-CN 0 dict def
/zh-CN_ls {
  /NativeFont /BousungEG-Light-GB-EUC-H def
  /UCS2Font /Courier def
  /Unicode2NativeDict Unicode2NativeDictzh-CN def
  /unicodeshow1 { real_unicodeshow } bind def
  /unicodeshow2 { real_unicodeshow_native } bind def
} bind def

Then the file should be ok. It means the above font will be used
for printing zh_CN text. If this is the case, you have to make 
sure your gs indeed print Chinese with truetype font ok.

If you don't have the lines, then mozilla did not read your 
preference setting for postscript generation.

-- 
hashao|      天下有始,以為天下母。既得其母,以知其子,復守其母,沒身
hashao|    不殆。
hashao|      塞其兌,閉其門,終身不勤。開其兌,濟其事,終身不救。
hashao|      見小曰明,守柔曰強。用其光,復歸其明,無遺身殃;是為襲常。

-- 
To UNSUBSCRIBE, email to debian-chinese-gb-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

-- 
| This message was re-posted from debian-chinese-gb@lists.debian.org
| and converted from gb2312 to big5 by an automatic gateway.



Reply to: