DynaPDF Manual - Page 182

Previous Page 181   Index   Next Page 183

Function Reference
Page 182 of 818
ChangeFont
Syntax:
SI32 pdfChangeFont(
const PPDF* IPDF, // Instance pointer
SI32 Handle)
// Handle of the new font
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 font size is taken from the current font if any. If no font is active when the function is called, the
font size will be set to the value that was used to load font the last time.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
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.
 

Previous topic: ChangeBookmark

Next topic: ChangeFontStyle, ChangeFontStyleEx, ChangeJavaScript


Start Chat