[gs-devel] CIDFont, required gs to call from ~/ direcroty? (Linux)

Shinichiro HIDA shinichiro at stained-g.net
Thu Nov 8 00:48:13 PST 2007


Hi all,

I could not display Japanese fonts (specified in lib/cidfmap) in ps and
pdf files when I call gs from outside of `~/' directory (ex. /home/shinichiro/).

But when I call gs from `~/' direcory(include subdirectories, like
~/tmp..), gs display Japanese fonts correctly as I wish.

Also kpdf (KDE version xpdf) need to display call from /etc/xpdf
directory.

ex.
a) $ cd /doc/fax ; gs -sDEVICE=x11alpha /doc/fax/somefile.ps
   [...]
   Can't find (or can't open) font file
   /usr/local/share/ghostscript/8.60/Resource/Font/Ryumin-Light-H.
   Loading Ryumin-Light-H font from Ryumin-Light-H... 3990368 2217682 2442528 1134342 1 done.
   Loading Ryumin-Light-H font failed.
   Querying operating system for font files...
   Didn't find this font on the system!  Substituting font Courier for Ryumin-Light-H.
   Loading NimbusMonL-Regu font from
   /usr/local/share/ghostscript/fonts/n022003l.pfb... 4030016 2357093 2442528 1135993 1 done.
   >>showpage, press <return> to continue<<

   -> gs displayed broken, blank japanese fonts..

b) $ cd ~ ; gs -sDEVICE=x11alpha /doc/fax/somefile.ps

   Loading a TT font from /usr/local/share/ghostscript/fonts/ipam.ttf
   to emulate a CID font Ryumin-Light ... Done.
   >>showpage, press <return> to continue<<

   -> gs displayed correctly.

c) $ cd /etc/xpdf; kdf /doc/fax/somefile.pdf

   -> correct.

d) $ cd ~/; kpdf /doc/fax/somefile.pdf

   -> broken..

Why? I am something wrong or misunderstand?

I try to use gs-8.60, and gs-8.61(svn version) on my 3 Debian (1 Sid /
2 Etch) boxes. gs had installed into /usr/local/ghostscript/8.xx from
tar ball.

configured with:
./configure \
 --disable-compile-inits \
 --disable-fontconfig \    (this option not functional with this problem)
 --with-x \
 --with-jasper \
 --with-gs=gs-8.6
 --with-fontpath=/usr/local/share/ghostscript/fonts

I set /usr/local/bin/gs-8.6 link to /usr/bin/gs (/etc/alternatives/gs)
with `update-alternatives --install [...]' command.

;; I disabled debian's gs (ghoscscript) package to test.

$ gs -h
GPL Ghostscript 8.60 (2007-08-01)
[...]
Search path:
   . : /usr/local/share/ghostscript/8.60/lib :
   /usr/local/share/ghostscript/8.60/lib :
   /usr/local/share/ghostscript/8.60/Resource :
   /usr/local/share/ghostscript/fonts : /usr/local/share/ghostscript/fonts

I tryed to set GS_LIB="/usr/local/share/ghostscript/8.60/lib",
GS_FONTPATH or `-I' switch, but these are no effect.

8.61 (svn) has same problem, I tested.

Thanks in advance.

-- 
  Shinichiro HIDA  shinichiro at stained-g.net
  GPG fingerprint = BD22 BAE5 43BA 5E70 9F1B  7627 1D81 E567 6912 F09D




More information about the gs-devel mailing list