Goto: 4C Home | 4C Docs | 4C External Libraries Home | FCPdf Home | FCPdf Function List DocSetFontFace()

DocSetFontFace()

Purpose:
FCPdf::DocSetFontFace() sets the default Fontface for new pages added to the FCPdf document.
Usage:
rc = FCPdf::DocSetFontFace(<docident>,<fontface> [, <encoding> ]);
Arguments:

integer <docident> - A valid FCPdf docident

alpha <fontface> - The face name for the font.

alpha <encoding> - Optional arg if default encoding is not adequate. This is case sensitive and must match one of the libharu encoding strings. Most useful with a unicode font where you should specify the string "UTF-8".
Returns:
integer <rc>
0 - OK
-1 - Error - Invalid docident
Where Used:
FCPdf::DocSetFontFace() can be called anytime that you have a valid docident and want to change the default fontface for any new pages that will be added to the document. Normally, if used, it will be called shortly after the document is created.
Example:
Description:
FCPdf::DocSetFontFace() sets the default Fontface for new pages added to the FCPdf document.

Currently, FCPdf only supports the 14 fonts that are guaranteed to be available in all PDF consumer applications. They are
  • "Courier"
  • "Courier-Bold"
  • "Courier-Oblique"
  • "Courier-BoldOblique"
  • "Helvetica"
  • "Helvetica-Bold"
  • "Helvetica-Oblique"
  • "Helvetica-BoldOblique"
  • "Times-Roman"
  • "Times-Bold"
  • "Times-Italic"
  • "Times-BoldItalic"
  • "Symbol"
  • "ZapfDingbats"
  • Bugs/Features/Comments:
    See Also: See Also
    FCPdf Function List


    Back to Top