title: Specific fonts in TCPDF pdf
body: <p>Can somebody tell me what i am doing wrong? I need Arial font in my pdf generated by TCPDF.
  First I've tried to use that :
  1) I got Arial from windows fonts caltalog and put it in TCPDF directory.
  2) Next I wrote in script :</p>
  
  <pre><code>$fontname = $pdf-&gt;addTTFfont('../lib/tcpdf/arial.ttf', '', '', 32);
  </code></pre>
  
  <p>After that in tcpdf/fonts appears 3  files (arial.ctg.z , arial.php and arial.z). I thought that everything was ok but if in TCPDF i use this font by: </p>
  
  <pre><code>$pdf-&gt;SetFont('arial', '', 16);
  </code></pre>
  
  <p>Font in document is indeed arial but without polish specific sings (ąęłżńź)</p>
  
  <p>I've tried also prepare font by yourself :
  I downloaded ttf2afm and makefontuni.php script then in command line I wrote this:</p>
  
  <pre><code>ttf2ufm -a arial.ttf
  php -q makefontuni.php arial.ttf arial.ufm
  </code></pre>
  
  <p>that command gave me also 3 files  (arial.ctg.z , arial.php and arial.z) but final situation is the same like before.</p>
  
  <p>I've admit that all data writing to pdf is in UTF-8 and TCPDF construct is like this :</p>
  
  <pre><code>$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'utf-8', false);
  </code></pre>
  
  <p>I don't know what am i doing wrong. :(</p>