PDFSetFont

Set a new font or font style to write to the PDF.

PDFSetFont(string FontName, 
int Size);

Example:
PDFSetFont('Helvetica', 10);

Use the following functions to set the default fonts defined in library LIB_PDF:

PDFSetDefaultFont();
PDFSetTitleFont();
PDFSetHeaderFont();
PDFSetFooterFont();
PDFSetAddressFont();

Available fonts are:

  • Helvetica (Default)
  • HelveticaBold
  • HelveticaItalic
  • HelveticaBoldItalic
  • TimesRoman
  • TimesRomanBold
  • TimesRomanItalic
  • TimesRomanBoldItalic
  • Courier
  • CourierBold
  • CourierItalic
  • CourierBoldItalic
  • Symbol
  • ZapfDingbats