:SuSE 7.2, GNU Ghostscript 5.50: Last night I tried to use KDE to print a Chinese document typed in kword to PDF. Later on I checked the PDF and only the first line was correctly displayed, other lines became all garbage. I got the same result if I print it directly from the printer. I am wondering if this is a problem of kword, the CJK support of gs or even the Chinese font (Arphic) used.
khchan2@study.csis.hku.hk writes:
:SuSE 7.2, GNU Ghostscript 5.50: Last night I tried to use KDE to print a Chinese document typed in kword to PDF. Later on I checked the PDF and only the first line was correctly displayed, other lines became all garbage. I got the same result if I print it directly from the printer.
I just tried this with mfabian@gregory:~$ gs -version GNU Ghostscript 6.51 (2001-03-28) Copyright (C) 2001 artofcode LLC, Benicia, CA. All rights reserved. mfabian@gregory:~$ kword --version Qt: 2.3.1 KDE: 2.2.1 KWord: 1.1 mfabian@gregory:~$ and it works for me. I don't think the Ghostscript version makes a difference here. You just need to have the following font packages installed: CID-keyed-fonts-MOE.rpm CMap-Adobe-CNS1.rpm maybe you have not yet installed these fonts?
I am wondering if this is a problem of kword, the CJK support of gs or even the Chinese font (Arphic) used.
KWord doesn't seem to use the Arphic font for printing Chinese. No
matter whether I selected 'AR PL KaitiM Big5' or 'AR PL Mingti2L
Big5', when I printed with the output to a PostScript file I could see
that the MOESung-Regular font from CID-keyed-fonts-MOE.rpm was always used:
taiwan@gregory:~$ grep MOE print.ps
[ /MOESung-Regular-B5-H 1 0 ]
taiwan@gregory:~$ gs print.ps
GNU Ghostscript 6.51 (2001-03-28)
Copyright (C) 2001 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file COPYING for details.
Can't find (or can't open) font file /Resource/Font/MSung-Light-B5-H.
Can't find (or can't open) font file MSung-Light-B5-H.
Substituting font Courier for MSung-Light-B5-H.
Loading NimbusMonL-Regu font from /usr/share/ghostscript/fonts/n022003l.pfb... 2237832 788192 1722904 408102 0 done.
Loading MOESung-Regular-B5-H font from /usr/share/ghostscript/fonts/MOESung-Regular-B5-H.gsf... 2237832 792607 13488072 12090208 0 done.
>>showpage, press <return> to continue<<
all characters were displayed correctly, no garbage.
It was obvious that the Arphic fonts were not used though, the
MOESung-Regular font looks a bit similar to the 'AR PL Mingti2L Big5'
but looks very different from 'AR PL KaitiM Big5', therefore it is
especially obvious that a different font is used for printing than for
on screen display when 'AR PL KaitiM Big5' is selected in KWord.
Printing from KWord into a PDF file produces a file identical to a PDF
file converted from a PostScript file by 'ps2pdf' (i.e. by
Ghostscript). This looks like KWord just calls 'ps2pdf' to create a
PDF file. 'strace' confirms this suspicion. I.e. for PDF files the
MOESung-Regular font is used as well. It is embedded as a Type 3 font
into the PDF files, which unfortunately means that you cannot display
the resulting PDF file with 'xpdf' correctly, but 'acroread' works.
Therefore I believe the only problem is that you have not installed
ftp://ftp.suse.com/pub/suse/i386/7.2/suse/ap3/CID-keyed-fonts-MOE.rpm
ftp://ftp.suse.com/pub/suse/i386/7.2/suse/ap3/CMap-Adobe-CNS1.rpm
if you install these packages, it will probably work for you.
--
Mike Fabian
Basically I have installed these two fonts. I just checked by rpm -qi CID-keyed-fonts-MOE rpm -qi CMap-Adobe-CNS1 and they appeared to have been installed. Actually I can get the first line appeared correctly, but the remaining lines are garbage. That's the file: http://cronus.spaceports.com/~cbkihong/old/testpdf.pdf
Therefore I believe the only problem is that you have not installed
ftp://ftp.suse.com/pub/suse/i386/7.2/suse/ap3/CID-keyed-fonts-MOE.rpm
ftp://ftp.suse.com/pub/suse/i386/7.2/suse/ap3/CMap-Adobe-CNS1.rpm
if you install these packages, it will probably work for you.
-- Mike Fabian
http://www.suse.de/~mfabian $B?gL2ITB-$O$$$$;E;v$NE($@!#(B
participants (2)
-
khchan2@study.csis.hku.hk
-
Mike Fabian