DynaPDF Manual - Page 434

Previous Page 433   Index   Next Page 435

Function Reference
Page 434 of 860
Remarks:
The function does not use the exception handling of DynaPDF. No error message is set if the
function fails. However, the only possible error is out of memory if the function parameters are
valid.
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
 

Previous topic: GetFontCount, GetFontEx (obsolete), GetFontInfo

Next topic: GetFontMetrics