3 typedef struct _xFontName
{
9 char SetwidthName
[256];
10 char AddStyleName
[256];
11 unsigned int PixelSize
;
12 unsigned int PointSize
;
13 unsigned int ResolutionX
;
14 unsigned int ResolutionY
;
16 unsigned int AverageWidth
;
17 char CharSetRegistry
[256];
18 char CharSetEncoding
[256];
21 #define FontNameRegistry (1<<0)
22 #define FontNameFoundry (1<<1)
23 #define FontNameFamilyName (1<<2)
24 #define FontNameWeightName (1<<3)
25 #define FontNameSlant (1<<4)
26 #define FontNameSetwidthName (1<<5)
27 #define FontNameAddStyleName (1<<6)
28 #define FontNamePixelSize (1<<7)
29 #define FontNamePointSize (1<<8)
30 #define FontNameResolutionX (1<<9)
31 #define FontNameResolutionY (1<<10)
32 #define FontNameSpacing (1<<11)
33 #define FontNameAverageWidth (1<<12)
34 #define FontNameCharSetRegistry (1<<13)
35 #define FontNameCharSetEncoding (1<<14)
37 #define SlantRoman "R"
38 #define SlantItalic "I"
39 #define SlantOblique "O"
40 #define SlantReverseItalic "RI"
41 #define SlantReverseOblique "RO"
43 #define SpacingMonoSpaced "M"
44 #define SpacingProportional "P"
45 #define SpacingCharacterCell "C"
47 typedef char *XFontNameString
;
49 Bool
XParseFontName (XFontNameString
, XFontName
*, unsigned int *);
50 Bool
XFormatFontName (XFontName
*, unsigned int, XFontNameString
);
51 Bool
XCompareFontName (XFontName
*, XFontName
*, unsigned int);
52 Bool
XCopyFontName (XFontName
*, XFontName
*, unsigned int);