DynaPDF Manual - Page 416

Previous Page 415   Index   Next Page 417

Function Reference
Page 416 of 839
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;
typedef enum
{
ffsType1C
= 0, // CFF based Type1 font
ffsCIDFontType0C = 1, // CFF based Type1 CID font
 

Previous topic: GetFont (obsolete)

Next topic: GetFontInfoEx, GetFontOrigin