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

DynaPDF Manual - Page 373

Previous Page 372   Index   Next Page 374

Function Reference
Page 373 of 750
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
GetFontCount
Syntax:
SI32 pdfGetFontCount(
const PPDF* IPDF) // Instance pointer
The function returns the number of fonts which are used in the document. The properties of a font
can be accessed with GetFontEx().
GetFontEx (obsolete)
Syntax:
LBOOL pdfGetFontEx(
const PPDF* IPDF,
// Instance pointer
UI32 Handle,
// Font handle
struct TPDFFontObj* F) // Structure to be filled
This function is marked as obsolete since an extended version is available now. Please use
GetFontInfoEx() if possible.
The function retrieves the most important properties of a font like GetFont() but accepts a font
handle instead. A font handle is a simple array index. To enumerate all fonts of a document execute
the function in a loop from zero to GetFontCount() - 1. See also GetFont().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
GetFontInfo
Syntax:
LBOOL fntGetFontInfo(
const void* IFont,
// Pointer of a font object
struct TPDFFontInfo* F) // Structure to be filled
typedef enum
{
beWinAnsi
= 0, // This represents the Windows code page 1252.
beMacRoman
= 1, // Mac Roman encoding.
beMacExpert = 2, // Mac Expert encoding.
beStandard
= 3
// Standard encoding is a special encoding for Type1 fonts.
}TBaseEncoding;
typedef enum
{
ftMMType1
= 0, // Multiple Master
ftTrueType = 1, // TrueType font
ftType0
= 2, // CID font
ftType1
= 3, // Type1 font
ftType3
= 4
// Type3 font
}TFontType;
 

Previous topic: GetFont (obsolete)

Next topic: GetFontOrigin