Increase font quality at small sizes ?
Posted: 2011-10-26T09:08:31-07:00
Hi all
I'm using this simple script to create images of text in a set font and at a set size.
Everything works as I expected but the quality of the type at small sizes isn't very good.
Is there anyway I can increase the quality of the images?
ttmt
I'm using this simple script to create images of text in a set font and at a set size.
Code: Select all
<?php
header('Content-Type: image/png');
$text = 'Testing HHAVAHH';
$output_image = new Imagick();
$output_image->newImage(600, 200, '#dddddd');
$output_image->setImageFormat("png");
$text_draw = new ImagickDraw();
$text_draw->setFont("corbelb.ttf");
$text_draw->setFontSize(20);
$text_draw->setFillColor("black");
$output_image->annotateImage($text_draw, 10, 100, 0, $text);
echo $output_image;
?>
Is there anyway I can increase the quality of the images?
ttmt