using GD library drawing in php?
<p>the system is <code>window xp</code>.now, i  using  GD library to draw a chart set the font path as this:</p>

<pre><code>    putenv('GDFONTPATH=c:\windows\Fonts');
    $fontname='arial';
   $bbox=imagettfbbox($font_size,0,$fontname,$button_text);
</code></pre>

<p>the programme gave me a tip: can't find the font? but in my window xp system, there is a font named <code>arial</code> in the <code>Fonts</code> file. why ?</p>

<p>test code:</p>

<pre><code> putenv('GDFONTPATH=C:\\WINDOWS\\Fonts');
 $fontname='arial';
$char="test";
$size=20;
$bbox=imagettfbbox($size,0,$fontname,$char);
</code></pre>

<p>it show <code>invalidate font filename,</code></p>
