PHP Manual: cpdf_set_font
cpdf_set_font
Description
bool cpdf_set_font ( int pdf_document, string font_name, float size, string encoding )Sets the current font face, font size and encoding.
Parameters
pdf_documentThe document handle, returned by cpdf_open().
font_nameThe font name. Currently only the standard postscript fonts are supported.
See the ClibPDF Manual for more information, especially on how to support Asian fonts.
sizeThe font size
encodingCan take the following values: MacRomanEncoding, MacExpertEncoding, WinAnsiEncoding, and NULL (the font's built-in encoding).