title: Undefined font: In Fpdf
body: <p>I'm  New to Fpdf library, i need to create a pdf from data base in smarty. i have checked the data from data base is fine, when pass the font name the below error was show </p>
  
  <pre><code>Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/irmt/library/class/fpdf/fpdf.php on line 526
  &lt;b&gt;FPDF error:&lt;/b&gt; Undefined font: helvetica B
  </code></pre>
  
  <p>my code is</p>
  
  <pre><code>            $pdf-&gt;AddPage();
              $pdf-&gt;SetFont('Arial','B',14);
              $pdf-&gt;FancyTable($result);
              $pdf-&gt;Output();
  </code></pre>
  
  <p>Please help me how can i solve this problem.
  thank adv </p>