pdf_setfont

(PHP 4 >= 4.0.5, PECL)

pdf_setfont -- Set the current font

Description

bool pdf_setfont ( resource pdfdoc, int font, float size )

Set the current font in the given size, using a font handle returned by pdf_findfont(). 如果成功则返回 TRUE,失败则返回 FALSE

See also pdf_findfont().


add a note add a note User Contributed Notes
Malcolm Scott
05-Jun-2003 03:38
Note that pdf_setfont (this function) and pdf_set_font (a deprecated function) are different. I spent a while trying to figure out why my code wasn't working; it turns out I'd included the extra underscore by accident...