gpt4 book ai didi

linux - Ghostscript 无效字体错误

转载 作者:太空宇宙 更新时间:2023-11-04 11:29:06 25 4
gpt4 key购买 nike

我的系统中有 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

我在显示这个文件时遇到同样的错误:证明介绍.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

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

最佳答案

看起来您的 Symbol 字体无效。此外,您的 Ghostscript 似乎没有使用内置字体(和 ROM 文件系统),而是专门或优先使用系统字体。

我的 Ghostscript 副本使用 GS 附带的字体,并内置到 ROM 文件系统中,您的文件可以完美运行。

关于linux - Ghostscript 无效字体错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12438873/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com