title: pchart labels and text not showing
body: <p>searched everywhere and read every post on this and can't find a match so here goes:</p>
  
  <p>Have a Codeigniter/PHP graphing/charting app written using pchart library. Works fine locally on Windows 7, but labels and all text is missing when I delpoy to OpenShift. Images display correctly - just no axis labels or free text within the image.</p>
  
  <p>GD support enabled on OpenShift PHP.</p>
  
  <p>Fonts all in correct places.</p>
  
  <p>Filepath variable (I'm using an "APPPATH" one) tested and pointing to correct locations.</p>
  
  <p>All fonts where they should be.</p>
  
  <p>Help!</p>
  
  <p><strong>Edit: here's some code:</strong>
  Sure here you go. Not sure if you guys are php or pchart experts but here you go:</p>
  
  <pre><code>public function initChart($chartTitle,$chartName,$chartWidth=700, $chartHeight=250){
      require_once(APPPATH.'/libraries/pchart/class/pDraw.class.php');
      require_once(APPPATH.'/libraries/pchart/class/pImage.class.php');
      /* Create the pChart object */
      $this-&gt;pImage = new pImage($chartWidth,$chartHeight,$this-&gt;pData);
  
      /* Draw the background */
      $Settings = array("R"=&gt;255, "G"=&gt;255, "B"=&gt;255, "Dash"=&gt;0, "DashR"=&gt;0, "DashG"=&gt;0, "DashB"=&gt;0);
      $this-&gt;pImage-&gt;drawFilledRectangle(0,0,$chartWidth,$chartHeight,$Settings);
  
      /* Add a border to the picture */
      $this-&gt;pImage-&gt;drawRectangle(0,0,$chartWidth-1,$chartHeight-1,array("R"=&gt;0,"G"=&gt;0,"B"=&gt;0));
  
      /* Write the chart title */ 
      $this-&gt;pImage-&gt;setFontProperties(array("FontName"=&gt;APPPATH."/libraries/pchart/fonts/verdana.ttf","FontSize"=&gt;9));
      $this-&gt;pImage-&gt;drawText(230,20,$chartTitle,array("FontSize"=&gt;16)); //,"Align"=&gt;TEXT_ALIGN_BOTTOMMIDDLE
  
      /* Draw the scale and the 1st chart */
      $this-&gt;pImage-&gt;setGraphArea(60,30,$chartWidth-50,$chartHeight-60);
      $this-&gt;pImage-&gt;drawFilledRectangle(60,30,$chartWidth-50,$chartHeight-60,array("R"=&gt;255,"G"=&gt;255,"B"=&gt;255,"Surrounding"=&gt;-200,"Alpha"=&gt;10));
      $Settings = array("Pos"=&gt;SCALE_POS_LEFTRIGHT
          , "Mode"=&gt;SCALE_MODE_ADDALL_START0
          , "LabelingMethod"=&gt;LABELING_DIFFERENT
          , "LabelSkip"=&gt;2, "GridR"=&gt;255, "GridG"=&gt;255, "GridB"=&gt;255, "GridAlpha"=&gt;50, "TickR"=&gt;0, "TickG"=&gt;0, "TickB"=&gt;0, "TickAlpha"=&gt;50, "LabelRotation"=&gt;45, "CycleBackground"=&gt;1, "DrawXLines"=&gt;1, "DrawSubTicks"=&gt;1, "SubTickR"=&gt;255, "SubTickG"=&gt;0, "SubTickB"=&gt;0, "SubTickAlpha"=&gt;50, "DrawYLines"=&gt;ALL);
      $this-&gt;pImage-&gt;drawScale(array('LabelRotation'=&gt;45,"GridR"=&gt;200,"GridG"=&gt;200,"GridB"=&gt;200,"DrawSubTicks"=&gt;TRUE,"Mode"=&gt;SCALE_MODE_ADDALL_START0,"CycleBackground"=&gt;TRUE)); //
      $this-&gt;pImage-&gt;setFontProperties(array("FontName"=&gt;APPPATH."/libraries/pchart/fonts/verdana.ttf","FontSize"=&gt;8));
      $this-&gt;pImage-&gt;drawLineChart(array("DisplayValues"=&gt;FALSE,"DisplayColor"=&gt;DISPLAY_MANUAL,"R"=&gt;0,"G"=&gt;0,"B"=&gt;255,"DisplayR"=&gt;0, "DisplayG"=&gt;0, "DisplayB"=&gt;255));
      $this-&gt;pImage-&gt;setShadow(FALSE);
  
      $this-&gt;pImage-&gt;render(APPPATH."views/images/charts/".$chartName);
  }
  </code></pre>