Components for Developers
© 2000-2008, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Text
Collapse All

This method sets the new font for text output.

Syntax

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

Reference

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2008, Two Pilots