title: PHP imagick annotate setFont exceeds max execution time
body: <p>Im tryin to write some text to an image using php imagick.
  It runs okay on my server, but i have a problem running it on my macbook.</p>
  
  <p>the code:</p>
  
  <pre><code>/* Text to write */
  $text = "Hello World!";
  
  /* Create Imagick objects */
  $image = new Imagick();
  $draw = new ImagickDraw();
  $color = new ImagickPixel('#000000');
  $background = new ImagickPixel('none'); // Transparent
  
  /* Font properties */
  $draw-&gt;setFont('Arial');
  $draw-&gt;setFontSize(50);
  $draw-&gt;setFillColor($color);
  $draw-&gt;setStrokeAntialias(true);
  $draw-&gt;setTextAntialias(true);
  
  /* Get font metrics */
  $metrics = $image-&gt;queryFontMetrics($draw, $text);
  
  /* Create text */
  $draw-&gt;annotation(0, $metrics['ascender'], $text);
  
  /* Create image */
  $image-&gt;newImage($metrics['textWidth'], $metrics['textHeight'], $background);
  $image-&gt;setImageFormat('png');
  $image-&gt;drawImage($draw);
  
  /* Save image */
  header("Content-type: image/png");
  echo $image;
  </code></pre>
  
  <p>When i run this on  my macbook, the processor gets stuck at at 100%, and the process is killed in 30 seconds with the message: Maximum execution time of 30 seconds exceeded in.....on line 13, which is the one with $draw->setFont();</p>
  
  <p>Thank you for your responses...</p>