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

DynaPDF Manual - Page 652

Previous Page 651   Index   Next Page 653

Function Reference
Page 652 of 750
cpGB2312,
// Native CJK character set requires a CJK font
cpWansung,
// Native CJK character set requires a CJK font
cpJohab
// Native CJK character set requires a CJK font
cpMacRoman,
// Mac Roman
cpAdobeStd,
// Special encoding for Type1 fonts; should not used.
cpInternal,
// Internal -> not usable
cpGlyphIndexes,
// TrueType and OpenType fonts only
cpPDFDocEnc,
// Internal -> not usable
cpDingbats
// Internal -> not usable
}TCodepage;
The function loads a font that can be used for text output and interactive form fields. The parameter
Name must be either the Family, Full, or PostScript Name depending on the current font selection
mode (see SetFontSelMode() for further information).
It is also possible to set the font name to NULL to deactivate the active font. This can be useful when
creating form fields. It means, use the default font of the global AcroForm object.
Fonts are looked up in the search directories which can be set with AddFontSearchPath(). On
Windows and Mac OS X operating systems DynaPDF adds automatically the default font directories
of the system to the list of font search paths. See SetUseSystemFonts() for further information.
Font enumeration
The available system fonts can be enumerated with GetSysFontInfo().
Font Search Order
DynaPDF searches for fonts in a specific order which can be changed with SetFontSearchOrder() or
SetFontSearchOrderEx(). The default search order is:
TrueType, TrueType Collection, OpenType fonts with TrueType outlines
OpenType fonts with Postscript outlines
Type1
Standard PDF fonts
OpenType fonts with TrueType outline are treated like ordinary TrueType fonts. All supported font
formats can be explicitly disabled if necessary. See SetFontSearchOrder() for further information.
Font names
All font types support different naming schemes: family and full names are normally used on
Windows and the Postscript name is widely used on Linux and UNIX operating systems. Font
names are case-sensitive, they must be specified exactly. The naming sheme that should be used for
font selection can be set with SetFontSelMode() (the default is smFamilyName).
Family name
The family name is the typeface of a font, it refers to the member lfFaceName of the LOGFONT
structure on Windows (see GetLogFont() for further information). Family names are stored in
 

Previous topic: SetFont

Next topic: Font Styles