title: FPDF add new font
body: <p>I'm using the FPDF library for PHP to generate reports, but now I need to use another font (Verdana) that isn't in the core fonts. I added the line:</p>
  
  <pre><code>$pdf-&gt;AddFont('Verdana','','verdana.php');
  </code></pre>
  
  <p>I copied the files verdana.php and verdana.z to the fonts directory. Every things works fine, if I use the next instructions:</p>
  
  <pre><code>$pdf-&gt;SetFont('Verdana','',6);
  </code></pre>
  
  <p>But if I try to use the next instruction (to use the bold font):</p>
  
  <pre><code>$pdf-&gt;SetFont('Verdana','B',6);
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code>FPDF error: Undefined font: verdana B
  </code></pre>
  
  <p>I tried adding another font for the Verdana Bold:</p>
  
  <pre><code>$pdf-&gt;AddFont('Verdana-Bold','B','verdanab.php');
  </code></pre>
  
  <p>Of course, I put the files verdanab.php and verdanab.z in the fonts directory. But I get the same error. What I'm missing or how to use both Verdana fonts (normal and bold)?</p>
  
  <p>Thanks in advance.</p>