DynaPDF Manual - Page 739

Previous Page 738   Index   Next Page 740

Function Reference
Page 739 of 839
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: Compatibility Note:, SetFontSearchOrderEx