DynaPDF Manual - Page 752

Previous Page 751   Index   Next Page 753

Function Reference
Page 752 of 787
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetUseSystemFonts
Syntax:
LBOOL pdfSetUseSystemFonts(
const PPDF* IPDF, // Instance pointer
LBOOL Value)
// see description
The property specifies whether the system fonts should be automatically loaded. On Windows all
fonts in the Windows/Fonts directory will be loaded as well as shared fonts listed in the Registry.
On Mac OS X the following font paths will be added to the list of font search paths:
/System/Library/Fonts
/Library/Fonts
~/Library/Fonts
Additional font paths can be added with AddFontSearchPath().
Default value = 1 (true)
The fonts are loaded when SetFont() is called the first time. The property is ignored on Linux or
UNIX.
Remarks:
Please note that the internal font list is not automatically updated when the system's font pool
changes. Windows operating systems send a WM_FONTCHANGE message if the font pool was
modified. In this case, the application should call ClearHostFonts() before calling SetFont() the next
time so that the list of available system fonts can be updated.
On Mac OS X there is no notification when the font database changes. Mac OS X applications need
to use functions of the font manager to determine whether font database has been modified.
SetUseTransparency
Syntax:
LBOOL pdfSetUseTransparency(
const PPDF* IPDF, // Instance pointer
LBOOL Value)
// If false, images appears opaque
The property specifies whether images should be masked with the current transparent color to make
this color transparent, see also SetTransparentColor(). This technique is known as color key
masking.
The default transparent color is white.
1 bit images are inserted as an image mask if this property is true. Non-zero pixels of an image mask
are rendered with the current fill color. See InsertImageEx() for further information.
 

Previous topic: SetUseSwapFile (obsolete), SetUseSwapFileEx (obsolete)

Next topic: SetUseVisibleCoords, SetViewerPreferences

Start Chat