title: How to fix that adding a custom font in tcpdf results in dotted output?
body: <p>I want to add a custom font. I converted an otf file to ttf, and load them via:</p>
  
  <pre><code>$std = \TCPDF_FONTS::addTTFfont($frutigerStd, 'TrueTypeUnicode', '', 96);
  </code></pre>
  
  <p>These command seem to do <i>something</i> as these values are set, as <code>$std</code> will have the value <code>frutigerltstdcn</code>.</p>
  
  <p>And use set them, in my extended <code>TCDP</code> class via:</p>
  
  <pre><code>$this-&gt;SetFont($std);
  </code></pre>
  
  <p>Yet once I open my generated pdf, Adobe Reader will declare:</p>
  
  <pre><code>Cannot extract the embedded font 'AAAAAC+FrutigerLTStd-Cn'.
  Some characters may not display or print correctly.
  </code></pre>
  
  <p>And true enough, the result is a dotted mess:</p>
  
  <p><img src="https://i.stack.imgur.com/mJMqS.png" alt="Dotted output of failed TCPDF addTTFont"></p>
  
  <p>What am I missing or doing wrong?</p>