0
我的系統中有一些ghostscript或字體問題。 我使用的Fedora 17,我曾試圖PS文件轉換爲PDF http://krajniak.info/tmp/intro.ps 不幸的是我所得到的是:Ghostscript無效字體錯誤
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
我有同樣的錯誤與displaing此文件: 了Evince intro.ps
[[email protected] 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- {}的字體和wine- {}的字體,然後重新安裝ghostscript的。目前我在/ usr /共享/字體包含這樣的文件夾:
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
也許有人有一些建議,我應該做的。 再見。
這是[Stack Overflow的主題](http://stackoverflow.com/faq#questions)。你可能想在[Unix.SE](http://unix.stackexchange.com)或[超級用戶](http://superuser.com)上詢問這個問題(但是首先在那裏搜索它!)。 –