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

Bug#732440: ghostscript: Error: /typecheck in /findfont with fonts-font-awesome installed



Package: ghostscript
Version: 9.05~dfsg-8+b1
Severity: normal

Dear Maintainer,

Ghostscript produces the following error when operating on a postscript file
that references an unknown font name, but only when the fonts-font-awesome
package is installed:

$ cat test.ps
%!PS-Adobe-2.0
/NotInstalledFont findfont 20 scalefont setfont
100 500 moveto
(Hello world) show
showpage
$ gs -dQUIET -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite \
    -dEmbedAllFonts=true -dOptimize=true -sOutputFile=test.pdf test.ps
Error: /typecheck in /findfont
Operand stack:
   NotInstalledFont
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--
--nostringval--   false   1   %stopped_push   1910   1   3   %oparray_pop
1909   1   3   %oparray_pop   1893   1   3   %oparray_pop   1787   1   3
%oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--
--nostringval--   --nostringval--   2   %stopped_push   --nostringval--   1868
1   3   %oparray_pop
Dictionary stack:
   --dict:1164/1684(ro)(G)--   --dict:0/20(G)--   --dict:77/200(L)--
Current allocation mode is local
Current file position is 42
GPL Ghostscript 9.05: Unrecoverable error, exit code 1

Removing the fonts-font-awesome package restores the correct behavior, which is
that ghostscript does not find a matching font and falls back to Courier.

I used strace to determine that the "awesome" font was the most recent file
opened by ghostscript before it exited. The fonts-font-awesome package was
recently installed as a new dependency of the latest texlive-fonts-extra
package.

This behavior looks somewhat similar to this upstream bug report:

http://bugs.ghostscript.com/show_bug.cgi?id=694790



-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental'), (1, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ghostscript depends on:
ii  debconf [debconf-2.0]  1.5.52
ii  gsfonts                1:8.11+urwcyr1.0.7~pre44-4.2
ii  libc6                  2.17-97
ii  libgs9                 9.05~dfsg-8+b1

ghostscript recommends no packages.

Versions of packages ghostscript suggests:
ii  ghostscript-cups  9.05~dfsg-8+b1
ii  ghostscript-x     9.05~dfsg-8+b1
ii  hpijs             3.13.4-1

-- no debconf information


Reply to: