DynaPDF Manual - Page 741

Previous Page 740   Index   Next Page 742

Function Reference
Page 741 of 839
SetFontSelMode
Syntax:
LBOOL pdfSetFontSelMode(
const PPDF* IPDF,
// Instance pointer
TFontSelMode Mode) // Font selection mode
typedef enum
{
smFamilyName
= 0, // Default
smPostScriptName = 1,
smFullName
= 2
}TFontSelMode;
The function changes the font selection mode. Note that the font names that will be passed to
SetFont() must correspond with the current font selection mode. If you don't know which font name
you have in memory then use SetFontEx() to select fonts. The font selection mode can be changed at
runtime whenever necessary.
SetFontWeight
Syntax:
LBOOL pdfSetFontWeight(
const PPDF* IPDF, // Instance pointer
SI32 Weight)
// Font weight
The font weight specifies the thickness or boldness of a font. Not all fonts are available in a bold
style but such a style can be emulated. The property FontWeight specifies the maximum weight that
can be emulated.
A bold or bolder font style will only be emulated if the distance between the requested and the
available weight is larger or equal 200 and if the requested weight is smaller or equal FontWeight.
Font weights:
100 - 300
// Ultra-light, Light
400 - 500
// Standard
600 - 1000 // Bold till UltraBlack
Default value: 1000
To disable the emulation of very thick font styles set the property to a lower value. To fully disable
bold style emulation set the value to 100.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: Compatibility Note:, SetFontSearchOrderEx

Next topic: SetGStateFlags