Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 163

Previous Page 162   Index   Next Page 164

Function Reference
Page 163 of 750
ChangeFont
Syntax:
SI32 pdfChangeFont(
const PPDF* IPDF, // Instance pointer
SI32 AHandle)
// Handle of the new font
This function changes or sets the font to the one of the parameter AHandle. AHandle 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.
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.
ChangeFontStyle
Syntax:
LBOOL pdfChangeFontStyle(
const PPDF* IPDF, // Instance pointer
TFStyle Style)
// New font style
typedef SI32 TFStyle;
#define fsNone
0
#define fsUnderlined 4
#define fsStriked
8
This function changes the style of the current font. Only the style flags fsUnderlined and fsStriked
can be set with this function. The font styles fsBold and fsItalic requires another font file that must be
selected with SetFont().
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: ChangeJavaScript