DynaPDF Manual - Page 508

Previous Page 507   Index   Next Page 509

Function Reference
Page 508 of 839
GetUseStdFonts
Syntax:
LBOOL pdfGetUseStdFonts(
const PPDF* IPDF) // Instance pointer
The function returns 1 (true) if the 14 standard fonts are enabled. PDF viewer applications support
14 standard fonts, these fonts are not embedded by default, also if the parameter Embed of the
function SetFont() is true and if the font file is available.
If a standard font should be embedded it is recommended to disable the internal fonts supported by
DynaPDF. See also SetFont() or SetUseStdFonts().
Default value = 1 (true)
GetUseSystemFonts
Syntax:
LBOOL pdfGetUseSystemFonts(
const PPDF* IPDF) // Instance pointer
The property specifies whether the default font directory of the operating system should be added
to the list of font search paths. On Windows this is the %Windows%/Fonts directory plus additional
fonts which can be named in the Registry.
On Mac OS X the following font directories will be added to the list of font search paths (in this
order):
~/Library/Fonts/
/Library/Fonts/
/System/Library/Fonts/
System fonts are loaded on demand, e.g. when a function tries to load a font. To improve processing
speed the internal font cache is hold in memory until the PDF instance will be deleted. Additional
font search paths can be added with AddFontSearchPath().
Because Linux and UNIX operating system support no default font directory the property is
ignored.
Return values:
The return value is 1 if systems fonts are enabled, or zero otherwise.
 

Previous topic: GetUserRights, GetUserUnit

Next topic: GetUsesTransparency