Make mono font chosable in config, remove hardcoded names from functions.

git-svn-id: http://www.observium.org/svn/observer/trunk@29 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2007-04-03 19:19:09 +00:00
parent 639bea8df4
commit 2f50bbd4b4
4 changed files with 50 additions and 50 deletions
+2 -2
View File
@@ -26,8 +26,8 @@ function temp_graph ($device, $graph, $from, $to, $width, $height, $title, $vert
$optsa[] = "GPRINT:temp$fs[temp_id]:MAX:%3.0lf°C\l";
$iter++;
}
if($width <= "300") {$optsb = array("--font", "LEGEND:7:$installdir/DejaVuSansMono.ttf",
"--font", "AXIS:6:$installdir/DejaVuSansMono.ttf",
if($width <= "300") {$optsb = array("--font", "LEGEND:7:$mono_font",
"--font", "AXIS:6:$mono_font",
"--font-render-mode", "normal");}
$opts = array_merge($optsa, $optsb);
$ret = rrd_graph("$imgfile", $opts, count($opts));