带有 pdfcairo 终端的 Gnuplot 似乎在字体方面给出了奇怪的行为,其中生成的 pdf 具有未命名的 Type 3 字体。这是输出 pdf 文件中 pdffonts 的输出:
name type encoding emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
[none] Type 3 Custom yes no yes 5 0
HTVMTJ+Helvetica CID TrueType Identity-H yes yes yes 6 0
ITRAZO+Helvetica CID TrueType Identity-H yes yes yes 7 0
这是一个问题,因为出版商拒绝接受文档中的 Type 3 字体。我该如何解决这个问题?下面是一个小的 gnuplot 文件,它在 OS X El Capitan 10.11.3、gnuplot 5.0 补丁级别 5 上重现了该问题:
set terminal pdfcairo font "Helvetica, 16"
set output "../plots/test.pdf"
set xlabel "x-axis"
set ylabel "y-axis"
set xrange [0:1]
set yrange [0:1]
plot 0.5 title "y=0.5" w l lw 3
目前,我的解决方法是使用 postscript 终端,然后使用 epstopdf,但这需要对许多脚本进行大量修改。任何想法这里出了什么问题?
最佳答案
我也遇到过这个问题并将其缩小为空格。任何时候向轴标签添加空格或将 tic 格式设置为包含空格时,都会添加未命名的 Type 3 字体。我什至无法开始理解为什么。
关于macos - gnuplot pdfcairo 未命名的 Type 3 字体在 macos 上的输出中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40233971/