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

DynaPDF Manual - Page 650

Previous Page 649   Index   Next Page 651

Function Reference
Page 650 of 750
SetFont
Syntax:
SI32 pdfSetFont(
const PPDF* IPDF, // Instance pointer
const char* Name, // Font name or NULL (see note below)
TFStyle Style,
// Font style
double Size,
// Font size
LBOOL Embed,
// If true, the font is embedded
TCodepage CP)
// Code page
typedef SI32 TFStyle;
#define fsNone
0x00000000 // Obsolete, use fsRegular instead
#define fsItalic
0x00000001
#define fsUnderlined
0x00000004
#define fsStriked
0x00000008
#define fsVerticalMode
0x00000010 // Not considered at this time
// Width Class (defined for future use, ignored at this time)
#define fsUltraCondensed 0x00000100 // 1
#define fsExtraCondensed 0x00000200 // 2
#define fsCondensed
0x00000300 // 3
#define fsSemiCondensed
0x00000400 // 4
#define fsNormal
0x00000500 // 5
#define fsSemiExpanded
0x00000600 // 6
#define fsExpanded
0x00000700 // 7
#define fsExtraExpanded
0x00000800 // 8
#define fsUltraExpanded
0x00000900 // 9
// Weight Class
#define fsThin
0x06400000 // 100
#define fsExtraLight
0x0C800000 // 200
#define fsLight
0x12C00000 // 300
#define fsRegular
0x19000000 // 400
#define fsMedium
0x1F400000 // 500
#define fsDemiBold
0x25800000 // 600
#define fsBold
0x2BC00000 // 700 -> The old constant 2 is still
supported to preserve backward compatibility
#define fsExtraBold
0x32000000 // 800
#define fsBlack
0x38400000 // 900
#define fsUltraBlack
0x3E800000 // 1000
typedef enum
{
cp1250,
// Eastern European
cp1251,
// Cyrillic
cp1252,
// Latin 1 Western European
cp1253,
// Greek
cp1254,
// Turkish
cp1255,
// Hebrew
cp1256,
// Arabic
cp1257,
// Baltic
cp1258,
// Vietnamese
 

Previous topic: SetFloatPrecision

Next topic: Family name