[rrd-users] SVG fonts on Ubuntu Server

Rob Conway rjconway at bigpond.com
Sat Apr 5 05:06:53 CEST 2008


Hi List

 

I was trying to see if I could optimize the file size of some of my graphs
by trying SVG format instead of the default png

 

rrdtool graph /var/www/ph1d.svg --start $stime --end $etime \

--upper-limit 7.2 --lower-limit 6.2 --slope-mode --units-length 2 \

--interlaced \

--imgformat SVG \

--rigid \

--width 424 --height 200 \

--vertical-label "pH\n" \

--color GRID#3D5229 \

--color MGRID#385E0F \

--color FONT#E0E0E0 \

--color CANVAS#000000 \

--color BACK#121212 \

DEF:phv=/var/scripts/rrd/aqua_ph.rrd:P1:AVERAGE  LINE1:phv#0000FF:"Ph=" \

VDEF:phlast=phv,LAST GPRINT:phlast:"%3.2lf%S" \

VDEF:phavg=phv,AVERAGE GPRINT:phavg:"avg=%3.2lf%spH      " \

--watermark "Aquarium PH Graph"

 

 

When I run the script I get   

 

Can't find font '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf'

 

However that font is actually in the directory

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20080405/617d7488/attachment.html 


More information about the rrd-users mailing list