]> git.sesse.net Git - rdpsrv/blob - Xserver/lib/font/bitmap/bdfint.h
Support RDP5 logon packets.
[rdpsrv] / Xserver / lib / font / bitmap / bdfint.h
1 /* $XConsortium: bdfint.h,v 1.3 94/04/17 20:17:09 rws Exp $ */
2
3 /*
4
5 Copyright (c) 1990  X Consortium
6
7 Permission is hereby granted, free of charge, to any person obtaining
8 a copy of this software and associated documentation files (the
9 "Software"), to deal in the Software without restriction, including
10 without limitation the rights to use, copy, modify, merge, publish,
11 distribute, sublicense, and/or sell copies of the Software, and to
12 permit persons to whom the Software is furnished to do so, subject to
13 the following conditions:
14
15 The above copyright notice and this permission notice shall be included
16 in all copies or substantial portions of the Software.
17
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21 IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
22 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
23 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24 OTHER DEALINGS IN THE SOFTWARE.
25
26 Except as contained in this notice, the name of the X Consortium shall
27 not be used in advertising or otherwise to promote the sale, use or
28 other dealings in this Software without prior written authorization
29 from the X Consortium.
30
31 */
32
33 #ifndef BDFINT_H
34 #define BDFINT_H
35
36 #define bdfIsPrefix(buf,str)    (!strncmp((char *)buf,str,strlen(str)))
37 #define bdfStrEqual(s1,s2)      (!strcmp(s1,s2))
38
39 #define BDF_GENPROPS    6
40 #define NullProperty    ((FontPropPtr)0)
41
42 /*
43  * This structure holds some properties we need to generate if they aren't
44  * specified in the BDF file and some other values read from the file
45  * that we'll need to calculate them.  We need to keep track of whether
46  * or not we've read them.
47  */
48 typedef struct BDFSTAT {
49     int         linenum;
50     char       *fileName;
51     char        fontName[MAXFONTNAMELEN];
52     float       pointSize;
53     int         resolution_x;
54     int         resolution_y;
55     int         digitCount;
56     int         digitWidths;
57     int         exHeight;
58
59     FontPropPtr fontProp;
60     FontPropPtr pointSizeProp;
61     FontPropPtr resolutionXProp;
62     FontPropPtr resolutionYProp;
63     FontPropPtr resolutionProp;
64     FontPropPtr xHeightProp;
65     FontPropPtr weightProp;
66     FontPropPtr quadWidthProp;
67     BOOL        haveFontAscent;
68     BOOL        haveFontDescent;
69     BOOL        haveDefaultCh;
70 }           bdfFileState;
71
72 extern unsigned char *bdfGetLine();
73
74 extern void bdfError();
75 extern void bdfWarning();
76 extern Atom bdfForceMakeAtom();
77 extern Atom bdfGetPropertyValue();
78 extern unsigned char bdfHexByte();
79
80 #endif                          /* BDFINT_H */