UseFont
IPDFDocument4
::
Page Operations
::
Text
See Also
Collapse All
This method sets the new font for text output.
Syntax
HRESULT
UseFont (
LONG
fontNumber
,
FLOAT
fontSizePt
)
Parameters
fontNumber
Number of the font
fontSizePt
Size (in points) of the font
Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.
Remarks
The
fontNumber
can be retrieved from the
AddFont
,
AddFontFromFile
, and
AddBuiltInFont
methods. See these methods for examples.
See Also
Reference
IPDFDocument4
Text