PageRenderTime 42ms CodeModel.GetById 28ms app.highlight 8ms RepoModel.GetById 2ms app.codeStats 0ms

/contrib/groff/src/include/XFontName.h

https://bitbucket.org/freebsd/freebsd-head/
C++ Header | 50 lines | 45 code | 5 blank | 0 comment | 0 complexity | 7af7552474335e706601261e9bdc340d MD5 | raw file
 1typedef struct _xFontName {
 2	char		Registry[256];
 3	char		Foundry[256];
 4	char		FamilyName[256];
 5	char		WeightName[256];
 6	char		Slant[3];
 7	char		SetwidthName[256];
 8	char		AddStyleName[256];
 9	unsigned int	PixelSize;
10	unsigned int	PointSize;
11	unsigned int	ResolutionX;
12	unsigned int	ResolutionY;
13	char		Spacing[2];
14	unsigned int	AverageWidth;
15	char		CharSetRegistry[256];
16	char		CharSetEncoding[256];
17} XFontName;
18
19#define FontNameRegistry	(1<<0)
20#define FontNameFoundry		(1<<1)
21#define FontNameFamilyName	(1<<2)
22#define FontNameWeightName	(1<<3)
23#define FontNameSlant		(1<<4)
24#define FontNameSetwidthName	(1<<5)
25#define FontNameAddStyleName	(1<<6)
26#define FontNamePixelSize	(1<<7)
27#define FontNamePointSize	(1<<8)
28#define FontNameResolutionX	(1<<9)
29#define FontNameResolutionY	(1<<10)
30#define FontNameSpacing		(1<<11)
31#define FontNameAverageWidth	(1<<12)
32#define FontNameCharSetRegistry	(1<<13)
33#define FontNameCharSetEncoding	(1<<14)
34
35#define SlantRoman		"R"
36#define SlantItalic		"I"
37#define SlantOblique		"O"
38#define SlantReverseItalic	"RI"
39#define SlantReverseOblique	"RO"
40
41#define SpacingMonoSpaced	"M"
42#define SpacingProportional	"P"
43#define SpacingCharacterCell	"C"
44
45typedef char	*XFontNameString;
46
47Bool XParseFontName (XFontNameString, XFontName *, unsigned int *);
48Bool XFormatFontName (XFontName *, unsigned int, XFontNameString);
49Bool XCompareFontName (XFontName *, XFontName *, unsigned int);
50Bool XCopyFontName (XFontName *, XFontName *, unsigned int);