title: imagettftext() function not working?
body: <p>I input this code to show text convert into image.</p>
  
  <pre><code>&lt;?php
  // Set the content-type
  header('Content-Type:image/png');
  
  // Create the image
  $im = imagecreatetruecolor(400, 30);
  
  // Create some colors
  $white = imagecolorallocate($im, 255, 255, 255);
  $grey = imagecolorallocate($im, 128, 128, 128);
  $black = imagecolorallocate($im, 0, 0, 0);
   imagefilledrectangle($im, 0, 0, 399, 29, $white);
  
  // The text to draw
  $text = 'Testing...';
  // Replace path by your own font path
  $font="arial.ttf";
  
  // Add some shadow to the text
  imagettftext($im, 20, 0, 11, 21, $grey, $font, $text);
  
  // Add the text
  imagettftext($im, 20, 0, 10, 20, $black, $font, $text);
  
  // Using imagepng() results in clearer text compared with imagejpeg()
  imagepng($im);
  imagedestroy($im);
  ?&gt;
  </code></pre>
  
  <p>And after this the OUTPUT is::</p>
  
  <p><a href="http://i.stack.imgur.com/X5t0Y.png" rel="nofollow">Output in mozilla</a></p>
  
  <p>I'm using WAMP in windows and also GD installed... My gd_info() :</p>
  
  <pre><code>array (size=12)
  'GD Version' =&gt; string 'bundled (2.1.0 compatible)' (length=26)
  'FreeType Support' =&gt; boolean true
  'FreeType Linkage' =&gt; string 'with freetype' (length=13)
  'T1Lib Support' =&gt; boolean false
  'GIF Read Support' =&gt; boolean true
  'GIF Create Support' =&gt; boolean true
  'JPEG Support' =&gt; boolean true
  'PNG Support' =&gt; boolean true
  'WBMP Support' =&gt; boolean true
  'XPM Support' =&gt; boolean true
  'XBM Support' =&gt; boolean true
  'JIS-mapped Japanese Font Support' =&gt; boolean false
  </code></pre>
  
  <p>So finally what I have to do... Please help me......</p>