PDF_set_font

PDF_set_font -- Select the current font face and size

Description

void pdf_set_font(int pdf document, string font name, double size, int encoding);

The PDF_set_font() function sets the the current font face, font size and encoding. You will need to provide the Adobe Font Metrics (afm-files) for the font in the font path (default is ./fonts). The last parameter encoding can take the following values: 0 = builtin, 1 = pdfdoc, 2 = macroman, 3 = macexpert, 4 = winansi. You should not pass a value greater than 5, because pdflib 0.6 does a poor error checking and dies for greater values.

See also PDF_info().