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

DynaPDF Manual - Page 376

Previous Page 375   Index   Next Page 377

Function Reference
Page 376 of 750
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: GetFontInfo

Next topic: GetFTextHeight