我正在使用gnuplot中的pngcairo终端来生成图像。指定端子时,字体设置为"sans,9“。我如何知道选择了哪种特定的字体进行渲染?
terminal命令: set terminal pngcairo font "sans,9“size 1500,1000
(编辑)更多信息:安装在Windows 7操作系统下。我只需要找出gnuplot 4.4.4中的给定语句使用了什么字体,它用于创建许多绘图。gnuplot 4.6.0决定为相同的语句使用不同的字体,并且实际上不可能重新呈现所有早期的绘图以匹配。
发布于 2012-07-24 04:50:01
我创建了一个文件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-generic #36-Ubuntu
)
open("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf", O_RDONLY) = 5
https://stackoverflow.com/questions/11618873
复制相似问题