title: tfpdf -Can't open file C:\webprojects\www\diners/font/unifont/DejaVuSansCondensed.ttf
body: <p><code>tfpdf -Can't open file C:\webprojects\www\diners/font/unifont/DejaVuSansCondensed.ttf</code> this file name is from my windows local system? and is displayed when trying to run from the web host.</p>
  
  <pre><code>require('tfpdf.php');
  class PDF extends tFPDF {
      function Header(){
          global $title;
          // Select Arial bold 15
          $this-&gt;SetFont('Arial','B',15);
          // Move to the right
          $this-&gt;Cell(20);
          // Framed title
          $this-&gt;Cell(150,10,$title,1,0,'C');
          // Line break
          $this-&gt;Ln(20);
      }
  }
  // Which pdf are we going to produce
  $report=$_POST['report'];
  $pdf = new PDF();
  $pdf-&gt;AddPage();
  $pdf-&gt;AddFont('DejaVu','','DejaVuSansCondensed.ttf',true);
  $pdf-&gt;AddFont('DejaVu','B','DejaVuSansCondensed-Bold.ttf',true);
  //$pdf-&gt;SetTitle($title);
  $jmcFont='Times';
  switch($report) { 
      case "list":
      $pdf-&gt;SetFont($jmcFont,'B',14);$pdf-&gt;Cell(40,10,'Diners');$pdf-&gt;Ln(10); 
      foreach($diners as $d) {
          if ($d['attending']==1) {
              $x=explode('|',$d['menuchoice']);  
              $pdf-&gt;SetFont($jmcFont,'B',10);
              $pdf-&gt;Write(5, $d['fname'].' '.$d['sname'].':-');
              $pdf-setfont($jmcFont,'',10);
              $pdf-&gt;Write(5, $starter[$x[0]].'-'.$mains[$x[1]].'-'.$sweet[$x[2]].'Note:'.$d['apology']);
              $pdf-&gt;Ln(7);           
          }
      }
  </code></pre>
  
  <p>The code works fine if the</p>
  
  <pre><code>$pdf-&gt;AddFont('DejaVu','','DejaVuSansCondensed.ttf',true);
  $pdf-&gt;AddFont('DejaVu','B','DejaVuSansCondensed-Bold.ttf',true); 
      lines are commented out.
  </code></pre>
  
  <p><strong>Why is it trying toreference my windows system?</strong> </p>