MvG*_*MvG 11 fonts r postscript ghostscript font-embedding
运行embedFonts我创建的一些EPS文件,我收到一条错误消息:
> 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''
Run Code Online (Sandbox Code Playgroud)
我怎样才能避免这个错误?
MvG*_*MvG 13
这是因为最近调用了这个设备ps2write.编写后脚本级别1的支持已被删除.下一个R版本(我们目前在3.1.0,所以这可能是3.2)将包含一个修复.引用变更列表:
embedFonts()现在默认为format = "ps2write"for.ps和.eps文件.这在Ghostscript 9.x(自2010年起)中可用,而之前的默认值format = "pswrite"在9.10中被删除.
因此,快速修复是手动传递format = "ps2write"给embedFonts调用.