Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows Can';不要让Ghostscript使用OpenType字体_Windows_Pdf_Ghostscript_Opentype - Fatal编程技术网

Windows Can';不要让Ghostscript使用OpenType字体

Windows Can';不要让Ghostscript使用OpenType字体,windows,pdf,ghostscript,opentype,Windows,Pdf,Ghostscript,Opentype,我正在尝试在Windows上使用GhostScript 9.27将一些PDF文件转换为PDF/A文件。但是,安装的字体会被Helvetica替换,即使它应该可以从系统的字体目录中获得 这是调试输出的相关部分: %Resolving: [7 0] resmp ResourceStatus beg /RotisSansSerifStd-Regular cidcm GetCIDSystemInfo beg resmp ResourceStatus beg /RotisSansSerifStd resm

我正在尝试在Windows上使用GhostScript 9.27将一些PDF文件转换为PDF/A文件。但是,安装的字体会被Helvetica替换,即使它应该可以从系统的字体目录中获得

这是调试输出的相关部分:

%Resolving: [7 0]
resmp ResourceStatus beg /RotisSansSerifStd-Regular
cidcm GetCIDSystemInfo beg
resmp ResourceStatus beg /RotisSansSerifStd
resmp ResourceFileName beg RotisSansSerifStd
resmp ResourceFileName : have NO map record.
resmp ResourceFileName : retrieving %rom%Resource/CIDFont/RotisSansSerifStd
resmp ResourceFileName end
resmp ResourceStatus end
cidcm GetCIDSystemInfo end
resmp ResourceStatus end
据我所知,Ghostscript应该与otf字体一起使用,我想知道为什么在我添加到
Fontmap.GS
时会出现“无地图记录”:

/RotisSansSerifStd          (C:\Windows\Fonts\RotisSansSerifStd-Regular.otf)    ;
/RotisSansSerifStd,Bold         (C:\Windows\Fonts\RotisSansSerifStd-Bold.otf)   ;
/RotisSansSerifStd-Regular      (C:\Windows\Fonts\RotisSansSerifStd-Regular.otf)    ;
/RotisSansSerifStd-Bold         (C:\Windows\Fonts\RotisSansSerifStd-Bold.otf)   ;
我做错了什么?

首先,您不能(当前)使用带有CFF轮廓的OTF字体来替代缺少的CIDFont,您可以使用带有TrueType轮廓的OTF字体。我相信您可以使用带有CFF轮廓的OTF字体来替代缺少的字体

您的PDF文件似乎缺少CIDFont(如果不设置RESMPDEBUG,则可以查看GS的所有输出),您正在修改fontmap.GS,它只为缺少的字体定义替代项,而不是CIDFonts。您需要修改cidfmap而不是fontmap.GS,以便为缺少的CIDFont定义替代项

就我所见,“无地图记录”警告是完全正确的,cidfmap中没有命名CIDFont的地图记录