Once loaded, the Postscript font can be used to render text using the imagepstext() function
imagepstext($img_r, $string, $font_r, $size, $f_color, $b_color, $x, $y
[, $spacing, $char_spacing, $angle, $antialias]);
Note: Unlike most functions, the imagepstext() accepts either eight or twelve parameters only
Descriptions of the optional parameters
- • $spacing - The amount of whitespace between words
- • $char_spacing - The amount of whitespace between individual characters
- • $angle - The angle to render the text on the canvas (in degrees)
- • $antialias - How many colors to use when anti-aliasing the text (4 or 16)