Bug#661863: ghostscript: CIDFont fallback to DroidSansFallback doesn't happen as advertised
Package: ghostscript
Version: 9.05~dfsg-2
Jonas Smedegaard wrote[1]:
> Hmm, I will try that - when I locate a CJK PostScript file to test
> against.
Looks like the feature just doesn't work.
When I try to view example 38 here: http://www.tcpdf.org/examples.php
It renders without obvious trouble, whether or not fonts-droid is
installed.
So I purged ttf-sazanami-mincho. The result:
| $ ghostscript -dSAFER ~/web/example_038.pdf
[...]
| Processing pages 1 through 1.
| Page 1
| Can't find CID font "ArialUnicodeMS".
| Attempting to substitute CID font /Adobe-Japan1 for /ArialUnicodeMS, see doc/Use.htm#CIDFontSubstitution.
| **** Warning: can't process font stream, loading font by the name.
| Can't find the font file /usr/share/fonts/truetype/fonts-japanese-mincho.ttf
| Can't find CID font "ArialUnicodeMS".
| Attempting to substitute CID font /Adobe-Japan1 for /ArialUnicodeMS, see doc/Use.htm#CIDFontSubstitution.
| **** Error reading a content stream. The page may be incomplete.
| **** File did not complete the page properly and may be damaged.
| Can't find the font file /usr/share/fonts/truetype/fonts-japanese-mincho.ttf
| >>showpage, press <return> to continue<<
and a blank page. Next try: purging cmap-adobe-japan1, which
incidentally refreshes the fontconfig cache. This time I get:
| Processing pages 1 through 1.
| Page 1
| **** Error reading a content stream. The page may be incomplete.
| **** File did not complete the page properly and may be damaged.
| >>showpage, press <return> to continue<<
and a blank page. I was expecting it to fall back to characters from
DroidSansFallback.
Ideas?
Jonathan
[1] http://bugs.debian.org/661764
| $ dpkg-query -W ghostscript ghostscript-x libgs9 libgs9-common gs-cjk-resource
| ghostscript 9.05~dfsg-2
| ghostscript-x 9.05~dfsg-2
| gs-cjk-resource 1.20100103-3
| libgs9 9.05~dfsg-2
| libgs9-common 9.05~dfsg-2
Reply to: