我通过Ghostscript将PostScript文件转换为PDF。我在嵌入/安装Type 1字体时遇到问题。
/usr/share/ghostscript/version/FONTMAP
,但在/ usr / share / ghostscript / 9.50`或Ubuntu 20.04上的类似文件夹中没有此类文件。代替
/Times-Bold findfont 10 scalefont setfont
就像是
(/home/font.pfa) 10 scalefont setfont
字体和Fontmap文件可以放在几个目录中。这是典型的搜索路径:
/usr/share/ghostscript/9.52/Resource/Init/Fontmap
/usr/share/ghostscript/9.52/lib/Fontmap
/usr/share/ghostscript/9.52/Resource/Font/Fontmap
/ usr / share / ghostscript / fonts / Fontmap
/ usr / share / fonts / Type1 / Fontmap
/ usr / share / fonts / Fontmap
有时,我会使用仅在当前工作目录中未安装在搜索路径中的字体。我使用gs -P和以下任一方法:
(font.pfa)12选择字体
/font.pfa 12 selectfont
也可以通过将目录添加到GS_FONTPATH或GS_LIB环境变量来修改搜索路径。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句