DynaPDF Manual - Page 436
Previous Page 435 Index Next Page 437

Function Reference
Page 436 of 860
m.Ascent *= 12.0f / 1000.0f;
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
GetFontSearchOrder
Syntax:
void pdfGetFontSearchOrder(
const PPDF* IPDF,
// Instance pointer
TFontBaseType Order[4]) // Array to which the order can be copied
The function copies the current font search order to the parameter Order. Note that the function does
not perform any validity check.
GetFontSelMode
Syntax:
SI32 pdfGetFontSelMode(
const PPDF* IPDF) // Instance pointer
typedef enum
{
smFamilyName
= 0,
smPostScriptName = 1,
smFullName
= 2
}TFontSelMode;
The function returns the current font selection mode. The font selection mode describes what kind
of font name must be passed to SetFont(). Note that a font cannot be found if the wrong mode is set.
Default value = smFamilyName
GetFontSize
Syntax:
double pdfGetFontSize(
const PPDF* IPDF) // Instance pointer
The function returns the font size of the active font.
Return values:
The function returns the font size, a value greater zero on success, or a negative error code on
failure.
Previous topic: GetFontMetrics
Next topic: GetFontWeight, Font weights:, GetFTextHeight