DynaPDF Manual - Page 421

Previous Page 420   Index   Next Page 422

Function Reference
Page 421 of 839
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.
GetFontWeight
Syntax:
SI32 pdfGetFontWeight(
const PPDF* IPDF) // Instance pointer
The function returns the weight that will be used to emulate a bold font style. See SetFontWeight()
for further information.
 

Previous topic: GetFontMetrics

Next topic: Font weights:, GetFTextHeight, GetFTextHeightEx