title: Embed Fonts in TCPDF
body: <p>I have read through previous threads on this topic, but all are old, unanswered, and/or about something more specific about creating custom fonts.</p>
  
  <p>In TCPDF:</p>
  
  <pre><code>$pdf-&gt;SetFont('times', '', 10);
  </code></pre>
  
  <p>The pdfs I create look awesome. It is just that BarnesAndNoble says my submitted PDF does not contain "embedded fonts".  Kindle says the same, but that they then embedded them for me.  I'm trying LuLu next, but want to deal with BN.com first.</p>
  
  <p>An example suggests:</p>
  
  <pre><code>$fontname = $pdf-&gt;addTTFfont('/fonts/arial.ttf', '', '', 32);
  </code></pre>
  
  <p>... but does not go on to say what to do with "$fontname". Nor what the "32" specifically stands for, or if there are better options for that "32".  Or, if THAT does embed fonts!</p>
  
  <p>My webhost says my fonts path is:</p>
  
  <pre><code>/usr/share/fonts/default/Type1
  </code></pre>
  
  <p>... maybe then (case sensitive??):</p>
  
  <pre><code>/usr/share/fonts/default/Type1/Helvetica
  </code></pre>
  
  <p>I need to properly embed my fonts!</p>