【问题标题】:embedFonts complains about “Unknown device: pswrite”embedFonts 抱怨“未知设备:pswrite”
【发布时间】:2014-08-24 03:54:21
【问题描述】:

在我创建的某个 EPS 文件上运行 embedFonts,我收到一条错误消息:

> embedFonts("foo.ps")
Unknown device: pswrite
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
    defaultdevice
Error in embedFonts("foo.ps") : 
  status 1 in running command 'gs -dNOPAUSE -dBATCH -q -dAutoRotatePages=/None -sDEVICE=pswrite -sOutputFile=/tmp/Rtmp3Lv0dj/Rembed2cd86df573a1 '-sFONTPATH='  'foo.ps''

我怎样才能避免这个错误?

【问题讨论】:

    标签: r fonts ghostscript postscript font-embedding


    【解决方案1】:

    这是因为现在该设备被称为ps2write。已删除对编写帖子脚本级别 1 的支持。下一个 R 版本(我们目前是 3.1.0,所以这可能是 3.2 左右)将包含一个修复。引用更改列表:

    embedFonts() 现在默认为 format = "ps2write" 用于 .ps.eps 文件。这在 Ghostscript 9.x(自 2010 年起)中可用,而之前的默认值 format = "pswrite" 在 9.10 中已删除。

    因此,快速解决方法是将format = "ps2write" 手动传递给embedFonts 调用。

    【讨论】:

      猜你喜欢
      • 2021-09-27
      • 1970-01-01
      • 1970-01-01
      • 2020-09-16
      • 2021-12-16
      • 1970-01-01
      • 2023-04-02
      • 1970-01-01
      • 2019-07-01
      相关资源
      最近更新 更多