Description: Fix the reference to font file, make them refer to the
 Debian-installed fonts
Author: Jan-Pascal van Best <janpascal@vanbest.org>
--- a/lib/SpotImage.php
+++ b/lib/SpotImage.php
@@ -100,10 +100,10 @@
 			$img->drawGradientArea(0,$titleHeight,$width,$height,DIRECTION_VERTICAL,array("StartR"=>200,"StartG"=>200,"StartB"=>200,"EndR"=>18,"EndG"=>52,"EndB"=>86,"Alpha"=>100));
 			$img->drawGradientArea(0,0,$width,$titleHeight,DIRECTION_VERTICAL,array("StartR"=>18,"StartG"=>52,"StartB"=>86,"EndR"=>50,"EndG"=>50,"EndB"=>50,"Alpha"=>100));
 
-			$img->setFontProperties(array("FontName"=>"images/ttf/liberation-sans/LiberationSans-Bold.ttf","FontSize"=>10));
+			$img->setFontProperties(array("FontName"=>"/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf","FontSize"=>10));
 			$img->drawText($width/2,13,$title,array("Align"=>TEXT_ALIGN_MIDDLEMIDDLE,"R"=>255,"G"=>255,"B"=>255));
 
-			$img->setFontProperties(array("R"=>255,"G"=>255,"B"=>255,"FontName"=>"images/ttf/liberation-sans/LiberationSans-Regular.ttf","FontSize"=>9));
+			$img->setFontProperties(array("R"=>255,"G"=>255,"B"=>255,"FontName"=>"/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf","FontSize"=>9));
 			$img->setGraphArea(60,$titleHeight+20,$width-50,$height-30);
 			$img->drawScale(array("GridR"=>200,"GridG"=>200,"GridB"=>200,"Mode"=>SCALE_MODE_START0));
 			$img->drawBarChart(array("Gradient"=>TRUE,"GradientMode"=>GRADIENT_EFFECT_CAN,"DisplayPos"=>LABEL_POS_INSIDE,"DisplayValues"=>TRUE,"Surrounding"=>10)); 
@@ -120,7 +120,7 @@
 			$img->drawGradientArea(0,$titleHeight,$width,$height,DIRECTION_VERTICAL,array("StartR"=>200,"StartG"=>200,"StartB"=>200,"EndR"=>18,"EndG"=>52,"EndB"=>86,"Alpha"=>100));
 			$img->drawGradientArea(0,0,$width,$titleHeight,DIRECTION_VERTICAL,array("StartR"=>18,"StartG"=>52,"StartB"=>86,"EndR"=>50,"EndG"=>50,"EndB"=>50,"Alpha"=>100));
 
-			$img->setFontProperties(array("FontName"=>"images/ttf/liberation-sans/LiberationSans-Bold.ttf","FontSize"=>10));
+			$img->setFontProperties(array("FontName"=>"/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf","FontSize"=>10));
 			$img->drawText($width/2,13,$title,array("Align"=>TEXT_ALIGN_MIDDLEMIDDLE,"R"=>255,"G"=>255,"B"=>255));
 
 			$PieChart->setSliceColor(0,array("R"=>0,"G"=>108,"B"=>171));
@@ -128,7 +128,7 @@
 			$PieChart->setSliceColor(2,array("R"=>0,"G"=>171,"B"=>0));
 			$PieChart->setSliceColor(3,array("R"=>171,"G"=>28,"B"=>0));
 
-			$img->setFontProperties(array("FontName"=>"images/ttf/liberation-sans/LiberationSans-Regular.ttf","FontSize"=>9));
+			$img->setFontProperties(array("FontName"=>"/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf","FontSize"=>9));
 			$PieChart->draw3DPie($width/2,($height/2)+$titleHeight,array("Radius"=>($width/2)-100,"SecondPass"=>TRUE,"DrawLabels"=>TRUE,"WriteValues"=>TRUE,"Precision"=>2,"ValueR"=>0,"ValueG"=>0,"ValueB"=>0,"ValueAlpha"=>100,"SkewFactor"=>0.6,"LabelR"=>255,"LabelG"=>255,"LabelB"=>255,"LabelAlpha"=>100));
 		} # if
 
@@ -174,7 +174,7 @@
 
 	function createDefaultSpotwebImage() {
 		$imageFile = 'images/spotnet.gif';
-		$ttfFont = 'images/ttf/liberation-sans/LiberationSans-Bold.ttf';
+		$ttfFont = '/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf';
 		$fontColor = 'ffffff';
 
 		// Create image
