Function Reference
Page 189 of 839
ChangeFontEx
Syntax:
LBOOL pdfChangeFontEx(
const PPDF* IPDF, // Instance pointer
SI32 Handle,
// Font handle
double FontSize,
// Font size
TFStyle Style)
// Style flags
This function changes or sets the font to the one of the parameter Handle. Handle must be a valid font
handle that was returned by SetFont(), SetFontEx(), SetCIDFont(), or LoadFont().
The style flags should be the same as in the initial SetFont() call with exception of the flags
fsUnderline or fsStriked which can be used to underline or strikeout text.
The parameter FontSize must be greater zero.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
ChangeFontSize
Syntax:
SI32 pdfChangeFontSize(
const PPDF* IPDF) // Instance pointer
double Size)
// New font size
This function changes the font size of the current font. The font size must be greater zero.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.