我正在使用gnuplot中的pngcairo终端来生成图像.指定终端时,字体设置为“sans,9”.如何判断选择哪种特定字体进行渲染?
终端命令:
设置终端pngcairo字体“sans,9”大小1500,1000
(编辑)更多信息:
安装在Windows 7操作系统下.
我只需要找到gnuplot 4.4.4中给定语句使用的字体,用于创建许多图. gnuplot 4.6.0为同一语句决定了不同的字体,并且几乎不可能重新渲染所有早期的匹配图.
最佳答案 我创建了一个文件test.gp
set terminal pngcairo font "sans,9" size 1500,1000
set output "test.png"
plot sin(x)
在strace下运行gnuplot
strace -o st.out gnuplot test.gp
grep的
grep 'open.*/usr/share/font.*' st.out
给我(Linux 3.0.0-22-通用#36-Ubuntu)
open("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf", O_RDONLY) = 5