mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 00:25:06 +02:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user