DynaPDF Manual - Page 728

Previous Page 727   Index   Next Page 729

Function Reference
Page 728 of 839
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
#define fsDblUnderline
0x00000020
// 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
cp8859_2,
// Latin 2 Central Europe
cp8859_3,
// Latin 3 Maltese
cp8859_4,
// Baltic
cp8859_5,
// Cyrillic
cp8859_6,
// Arabic
cp8859_7,
// Greek
cp8859_8,
// Hebrew
cp8859_9,
// Latin 5 Turkish
cp8859_10,
// Latin 6 Nordic Area
cp8859_13,
// Latin 7 Baltic Rim
cp8859_14,
// Latin 8 Celtic
cp8859_15,
// Latin 9 French
 

Previous topic: SetFillColorSpace, SetFloatPrecision

Next topic: Font enumeration