ps2pdf:更新后不再嵌入Ghostscript 9.15字体

时间:2014-10-01 07:59:50

标签: pdf fonts ghostscript postscript

我将Ghostscript从9.05更新到9.15。更新后,ps2pdf不再使用从PostScript到PDF的转换中的正确字体。

有问题的字体不是来自12种默认的PostScript字体。 fc-list正确列出它们,我甚至确保字体文件确实存在。

使用gs 9.05,一切都按预期工作。我使用的命令只是

ps2pdf $FILE $PDF_FILE_NAME

我尝试-dEmbedAllFonts=true但没有帮助。

我使用Generic Mapping Tools生成PostScript文件。使用Apple Mac OS X“Preview.app:

打开时,PostScript文件看起来正确

Screenshot of PostScript file opened in Apples Preview.app

只有gs生成的PDF缺少正确的字体:

Screenshot of PDF file opened in Apples Preview.app

系统:

  • Ubuntu 12.04.5 LTS(GNU / Linux 2.6.32-042stab092.2 x86_64)
  • GPL Ghostscript 9.15(2014-09-22)
  • GMT 5.2.0_r13493 [64位] [4核心]

我对可能导致问题的原因没有任何想法。您的想法和意见非常感谢。

2 个答案:

答案 0 :(得分:2)

似乎已成为一个错误:

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

仍在等待那里的臭虫记者的回复。

答案 1 :(得分:1)

您可以尝试将ps2pdf与附加选项-sFONTPATH一起使用:

ps2pdf -sFONTPATH=/path/to/your/fonts $FILE $OUTPUT