title: Can I programmatically determine what fonts I can use with GD?
body: <p>I want to put text over an image using GD.</p>
  
  <p>When I use</p>
  
  <pre><code>ImageTTFText($image, $fontSize, $fontRotation, 7, 22, $colorShadow, 'arial.ttf', $str);
  </code></pre>
  
  <p>I get </p>
  
  <blockquote>
    <p>Warning: imagettftext()
    [function.imagettftext]: Could not
    find/open font in
    /home/index.php
    on line 17</p>
  </blockquote>
  
  <p>Can I get PHP or GD to return a list of all available fonts per my system?</p>
  
  <p>Thanks</p>
  
  <h2>Update</h2>
  
  <p>... or do I need to upload myself all the fonts myself that I wish GD to have access to?</p>