$colorBlack, $colorRed,
0, 0, $spacing, $letting,
$angle, $antialias_steps);
//write extended text
imagepstext($image, $text, $myFont, $size,
$colorBlack, $colorRed,
0, $size, $spacing, $letting,
$angle, $antialias_steps);
//write slanted text
imagepstext($image, $text, $myFont, $size,
$colorBlack, $colorRed,
0, $size*2, $spacing, $letting,
$angle, $antialias_steps);
//unload fonts
imagepsfreefont($myFont);
imagepsfreefont($myFontExtended);
imagepsfreefont($myFontSlanted);
//send image
header("Content-type: image/jpeg");
imagejpeg($image);
?>
imagepsencodefont(string filename)
Use imagepsencodefont to change the encoding vector used to match ASCII characters
to PostScript font images. By default, PostScript fonts only have characters for the first
127 ASCII values. See imagepstext, below, for an example.
imagepsextendfont(integer font_identifier, double
extension_factor)
The imagepsextendfont function stretches or compresses a PostScript font. The normal
width of the font will be multiplied by the extension_factor. See imagepscopyfont
for an example. Multiple calls to this function are not cumulative, they just change the
extension. If you want to set the font back to normal width, use a factor of one.
imagepsfreefont(integer font_identifier)
The imagepsfreefont function removes a PostScript font from memory. Generally you
do not need to do this. PHP will unload fonts when your script ends. See imagepstext,
below, for an example.
imagepsslantfont(integer font_identifier, double slant_factor)