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

DynaPDF Manual - Page 661

Previous Page 660   Index   Next Page 662

Function Reference
Page 661 of 750
SetFontOrigin
Syntax:
LBOOL pdfSetFontOrigin(
const PPDF* IPDF, // Instance pointer
TOrigin Origin)
// New origin
typedef enum
{
orDownLeft = 0,
orTopLeft
= 1
}TOrigin;
The function sets the current font origin that is used to position text strings. The font origin is
automatically set to orTopLeft or orDownLeft if the coordinate system will be changed (see
SetPageCoords() for further information).
Default value = orDownLeft
Font origin:
0 0
The origin is top left
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetFontSearchOrder
Syntax:
void pdfSetFontSearchOrder(
const PPDF* IPDF,
TFontBaseType Order[4]) // 4 element array or NULL
typedef enum
{
fbtTrueType, // TrueType, TrueType Collections
fbtType1,
// Type1 font
fbtOpenType, // OpenType font with Postscript outlines
fbtStdFont,
// PDF Standard font
fbtDisabled
// Can be used to disable a font format
}TFontBaseType;
The function changes the font search order. The default search order is:
TrueType
OpenType (OpenType fonts with PostScript outlines)
Type1
PDF Standard Fonts
 

Previous topic: SetFontEx

Next topic: SetFontSearchOrderEx