【发布时间】:2020-01-05 07:54:29
【问题描述】:
我在 AIX 7.2 中遇到了这个错误:
Could not find/open font when opening font "arial", using internal non-scalable font
而且我不知道如何解决它...有什么想法吗?
你认为这个错误可能是我的图表“模糊”的原因吗?
这是我的 gnuplot 脚本:
set title "df -g command test"
set terminal png truecolor size 720,480 background rgb "#eff1f0"
set output "test.png"
set grid
set style line 1 \
linecolor rgb '#0060ad' \
linetype 1 linewidth 1 \
pointtype 7 pointsize 1
set style line 2 \
linecolor rgb "red" \
linetype 1 linewidth 1 \
pointtype 7 pointsize 1
set offsets 0.5,0.5,0,0.5
set datafile separator ","
set ylabel " MB BLOCK "
set xlabel " Date "
set format y "%g"
myLabel(n) = sprintf("%g",n)
plot "XXXXX" using 2:xtic(1) with linespoints linestyle 1 title "MB used", \
'' using 3:xtic(1) with linespoints linestyle 2 title " Free space ", \
'' using 0:2:(myLabel($2)) w labels offset 0,1.5 notitle, \
'' using 0:3:(myLabel($3)) w labels offset 0,1.5 notitle
如果我在 RedHat 7.6 上尝试这个脚本(没有可用空间曲线),我的 png 看起来很棒:
你有什么想法吗?
【问题讨论】:
-
检查是否安装了arial字体。例如:
fc-list | grep -i arial:它应该找到类似/usr/X11R6/lib/X11/fonts/TrueType/arial.ttf的文件