Ghostscript无效字体错误

时间:2012-09-15 15:59:10

标签: linux pdf gnuplot fedora ghostscript

我的系统中存在ghostscript或者字体的问题。 我正在使用Fedora 17.我试图将ps文件转换为pdf http://krajniak.info/tmp/intro.ps 不幸的是,我得到的是:

Error: /invalidfont in /findfont
Operand stack:
   Symbol-Oblique   Symbol
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1894   1   3   %oparray_pop   1893   1   3   %oparray_pop   --nostringval--   1877   1   3   %oparray_pop   1771   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   1852   2   4   %oparray_pop
Dictionary stack:
   --dict:1160/1684(ro)(G)--   --dict:0/20(G)--   --dict:82/200(L)--   --dict:174/256(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 15269
GPL Ghostscript 9.05: Unrecoverable error, exit code 1

我在替换此文件时遇到同样的错误: evince intro.ps

[teodor@lukrecja graphs]$ evince intro.ps 
invalidfont -10
invalidfont -10

(evince:5621): EvinceDocument-CRITICAL **: ev_document_misc_pixbuf_from_surface: assertion `surface' failed

(evince:5621): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
invalidfont -10

(evince:5621): EvinceDocument-CRITICAL **: ev_document_misc_pixbuf_from_surface: assertion `surface' failed

(evince:5621): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
invalidfont -10

我尝试过卸载freetype-in​​finality,同时在/etc/fonts/infinality/infinality.conf中启用“Type 1”字体,但没有任何结果。

gs -v的结果:

Search path:
   /usr/share/ghostscript/9.05/Resource/Init :
   /usr/share/ghostscript/9.05/lib :
   /usr/share/ghostscript/9.05/Resource/Font :
   /usr/share/ghostscript/fonts : /usr/share/fonts/default/ghostscript :
   /usr/share/fonts/default/Type1 : /usr/share/fonts/default/amspsfnt/pfb :
   /usr/share/fonts/default/cmpsfont/pfb : /usr/share/fonts :
   /usr/share/ghostscript/conf.d : /etc/ghostscript :
   /etc/ghostscript/9.05 : /usr/share/poppler/cMap/Adobe-CNS1 :
   /usr/share/poppler/cMap/Adobe-GB1 :
   /usr/share/poppler/cMap/Adobe-Japan1 :
   /usr/share/poppler/cMap/Adobe-Japan2 :
   /usr/share/poppler/cMap/Adobe-Korea1

解决 简单删除所有tex- {fonts}和wine- {fonts},然后重新安装ghostscript。目前我的/ usr / share / fonts包含这样的文件夹:

abattis-cantarell
cjkuni-uming
default
dejavu
google-droid
jomolhari
jsmath-fonts
khmeros
liberation
lklug
lohit-assamese
lohit-bengali
lohit-devanagari
lohit-gujarati
lohit-kannada
lohit-oriya
lohit-punjabi
lohit-tamil
lohit-telugu
nhn-nanum
opensymbol
paktype-naqsh
paratype-pt-sans
sil-abyssinica
sil-padauk
smc
stix
thai-scalable
vlgothic
wqy-zenhei

也许某人有一些建议,我应该做些什么。 再见。

1 个答案:

答案 0 :(得分:1)

您的Symbol字体看起来无效。此外,您的Ghostscript看起来没有使用内置字体(和ROM文件系统),并且是使用系统字体排他地或优先使用。

我的Ghostscript副本使用GS附带的字体,并内置到ROM文件系统中,您的文件可以正常工作。

相关问题