ps_setfont
PHP function
Edit on GitHub ✎
(PECL ps >= 1.1.0)
Sets font to use for following output
Description
ps_setfont(resource $psdoc, int $fontid, float $size): bool
Sets a font, which has to be loaded before with ps_findfont(). Outputting text without setting a font results in an error.
Parameters
psdocResource identifier of the postscript file as returned by
ps_new().fontidThe font identifier as returned by
ps_findfont().sizeThe size of the font.
Return Values
Success
See Also
ps_findfont()ps_set_text_pos()for an example.