我的系统中有 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-infinality,也尝试在 /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
也许有人有一些建议,我应该怎么做。再见。