PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis method sets the new font for text output.
|
| HRESULT UseFont2 ( LONG fontNumber, FLOAT fontSizePt, VARIANT_BOOL underline, VARIANT_BOOL strikeout ) |
Parameters
fontNumber
Number of the font
fontSizePt
Size (in points) of the font
underline
Determines whether the font is underlined (VARIANT_TRUE) or not (VARIANT_FALSE)
strikeout
Determines whether the font is strikeout (VARIANT_TRUE) or not (VARIANT_FALSE)
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.
This method is equivqlent of the UseFont method, but it allows you to set current font with underline and/or strikeout style.
See Also


