title: FPDF error: Could not include font metric file
body: <p>I have a app which was done by someone else and now i am asked to look into one issue.</p>
  
  <p>When a pdf report is generated it throws an error. This app uses FPDF to generate the PDF</p>
  
  <pre><code>FPDF error: Could not include font metric file
  </code></pre>
  
  <p>Earlier it was throwing the following error</p>
  
  <pre><code>Warning: FPDF::include(helveticab.php) [function.FPDF-include]: failed to open stream: No such file or directory 
  Warning: FPDF::include() [function.include]: Failed opening 'helveticab.php' for inclusion 
  FPDF error: Could not include font metric file
  </code></pre>
  
  <p>This was resolved by including a font folder with helveticab.php and other php files related to other fonts</p>
  
  <p>But the Error  FPDF error: Could not include font metric file is still there.
  On searching the net the possible reasons were</p>
  
  <ol>
  <li><p>font directory missing</p></li>
  <li><p>Doesnt have access permissions for the font files.</p></li>
  </ol>
  
  <p>I am not sure what permission need to given to the font folder or files in the folder.
  Any help in this regard would be of great help.</p>