Hello,
I have been trying to use .pfb fonts (Type 1) to generate dynamic
images. However the text in the images is very aliased and blurred.
This is of course not because of the font or the font style itself.
Please let me know if you have any ideas or opinions about it. Code
snippet:
$SIZE = 14;
$FONT_PATH = "/usr/X11R6/lib/X11/fonts/Type1/hell.pfb";
$FONT = ImagePSLoadFont ($FONT_PATH);
$im = ImageCreate(100 , 100);
$white = ImageColorAlloc ate($im, 255, 255, 255);
$gray = ImageColorAlloc ate($im, 134, 134, 134);
// draw
ImagePSText($im , $str, $FONT, $SIZE, $gray, $gray, 0, $SIZE,0,0,0,16) ;
ImagePSFreeFont ($FONT);
Thanks.
I have been trying to use .pfb fonts (Type 1) to generate dynamic
images. However the text in the images is very aliased and blurred.
This is of course not because of the font or the font style itself.
Please let me know if you have any ideas or opinions about it. Code
snippet:
$SIZE = 14;
$FONT_PATH = "/usr/X11R6/lib/X11/fonts/Type1/hell.pfb";
$FONT = ImagePSLoadFont ($FONT_PATH);
$im = ImageCreate(100 , 100);
$white = ImageColorAlloc ate($im, 255, 255, 255);
$gray = ImageColorAlloc ate($im, 134, 134, 134);
// draw
ImagePSText($im , $str, $FONT, $SIZE, $gray, $gray, 0, $SIZE,0,0,0,16) ;
ImagePSFreeFont ($FONT);
Thanks.
Comment