DynaPDF Manual - Page 419

Previous Page 418   Index   Next Page 420

Function Reference
Page 419 of 839
Note that the function was mainly designed to return the properties of fonts which were imported
from external PDF files. Many properties of system fonts, like CharSet, CIDSet, ToUnicode CMap
and so on cannot be returned since these objects will be created when the PDF file in memory is
closed.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
GetFontInfoEx
Syntax:
LBOOL pdfGetFontInfoEx(
const PPDF* IPDF,
// Instance pointer
UI32 Handle,
// Font handle
struct TPDFFontInfo* F) // Structure to be filled
The function retrieves the most important properties of a font like GetFontInfo() 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 GetFontInfo().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
GetFontOrigin
Syntax:
SI32 pdfGetFontOrigin(
const PPDF* IPDF) // Instance pointer
typedef enum
{
orDownLeft = 0, // Baseline
orTopLeft
= 1
// Upper left corner of the font's bounding box
}TOrigin;
The function returns the current font origin. The font origin is automatically set to orTopLeft or
orDownLeft if the coordinate system will be changed. The origin can be changed at runtime with the
function SetFontOrigin().
Default value = orDownLeft
Font origin:
0 0
The origin is top left
 

Previous topic: GetFontCount, GetFontEx (obsolete), GetFontInfo

Next topic: GetFontMetrics