From 74b6e0f981149dafd043c19a594dc89a498c44f8 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Wed, 14 Jul 2010 09:42:30 +0000 Subject: [PATCH] use configured monospace font in graphs git-svn-id: http://www.observium.org/svn/observer/trunk@1351 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/graphs/common.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/includes/graphs/common.inc.php b/html/includes/graphs/common.inc.php index 19a0ee0bc..e8f765c75 100644 --- a/html/includes/graphs/common.inc.php +++ b/html/includes/graphs/common.inc.php @@ -20,7 +20,7 @@ if($_GET['bg']) { $rrd_options .= " -c CANVAS#" . mres($_GET['bg']) . " "; } #$rrd_options .= " -c BACK#FFFFFF"; if($height < "99") { $rrd_options .= " --only-graph"; } -if($width <= "300") { $rrd_options .= " --font LEGEND:7:mono --font AXIS:6:mono"; -} else { $rrd_options .= " --font LEGEND:8:mono --font AXIS:7:mono"; } +if($width <= "300") { $rrd_options .= " --font LEGEND:7:" . $config['mono_font'] . " --font AXIS:6:" . $config['mono_font']; +} else { $rrd_options .= " --font LEGEND:8:" . $config['mono_font'] . " --font AXIS:7:" . $config['mono_font']; } ?>