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

DynaPDF Manual - Page 663

Previous Page 662   Index   Next Page 664

Function Reference
Page 663 of 750
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: SetFontSearchOrderEx

Next topic: SetGStateFlags