Goto:
4C Home
|
4C Docs
|
4C External Libraries Home
|
FCPdf Home
|
FCPdf Function List
PageSetFontFace()
PageSetFontFace()
Purpose:
-
FCPdf::PageSetFontFace() sets the Fontface for text being written to
the page in the FCPdf document.
Usage:
-
-
rc = FCPdf::PageSetFontFace(<pageident>,<fontface> [ , <encoding> ]);
Arguments:
-
integer <pageident> - A valid FCPdf pageident
-
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 pageident or invalid fontface
Where Used:
-
FCPdf::PageSetFontFace() can be called anytime that you have a valid pageident
and want to change the fontface for text being written to the page.
Example:
-
Description:
-
FCPdf::PageSetFontFace() sets the Fontface for text being written to
the page in the FCPdf document.
You can change the fontface for a page as often as you like and
these changes can be made inside or outside of the
FCPdf:TextBegin()/FCPdf::TextEnd() blocks.
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