title: TCPDF - How to generate a TTF file from PHP?
body: <p>I am using TCPDF 6.0.20, PHP 5.3.8.</p>
  <p>Since my PDF will contain some Chinese Character (Simplified and Traditional), I decide to use font name: <code>cid0cs</code>.</p>
  <p>Now, since a lot of users replied that they don't have that font installed, I need to embed this font to the PDF.</p>
  <p>However, in <a href="http://www.tcpdf.org/fonts.php" rel="nofollow noreferrer">http://www.tcpdf.org/fonts.php</a> it says how to embed a TTF file using <code>addTTFfont()</code>, but <strong>NO WAY</strong> to create that font.</p>
  <p>The only file that I found in <code>tcpdf/fonts/</code> is <code>cid0cs.php</code>, which is NOT a TTF file.</p>
  <p>I tried to run the script in <code>tcpdf/tools/tcpdf_addfont.php</code> and use the command line below:</p>
  <blockquote>
  <p>c:\tcpdf&gt;php tools/tcpdf_addfont.php -t CID0CS -o . -i fonts/cid0cs.php</p>
  </blockquote>
  <p>and it returns:</p>
  <blockquote>
  <p>--- ERROR: can't add fonts/cid0cs.php</p>
  </blockquote>
  <p>How can I create the <code>cid0cs.ttf</code> file so that I can embed it using <code>addTTFfont()</code>?</p>