]> git.sesse.net Git - rdpsrv/blob - Xserver/lib/font/include/fontxlfd.h
Support RDP5 logon packets.
[rdpsrv] / Xserver / lib / font / include / fontxlfd.h
1 /* $XConsortium: fontxlfd.h,v 1.6 94/04/17 20:17:30 gildea Exp $ */
2
3 /*
4
5 Copyright (c) 1990, 1994  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 /*
34  * Author:  Keith Packard, MIT X Consortium
35  */
36
37 #ifndef _FONTXLFD_H_
38 #define _FONTXLFD_H_
39
40 #include "FSproto.h"
41
42 /* Constants for values_supplied bitmap */
43
44 #define SIZE_SPECIFY_MASK               0xf
45
46 #define PIXELSIZE_MASK                  0x3
47 #define PIXELSIZE_UNDEFINED             0
48 #define PIXELSIZE_SCALAR                0x1
49 #define PIXELSIZE_ARRAY                 0x2
50 #define PIXELSIZE_SCALAR_NORMALIZED     0x3     /* Adjusted for resolution */
51
52 #define POINTSIZE_MASK                  0xc
53 #define POINTSIZE_UNDEFINED             0
54 #define POINTSIZE_SCALAR                0x4
55 #define POINTSIZE_ARRAY                 0x8
56
57 #define PIXELSIZE_WILDCARD              0x10
58 #define POINTSIZE_WILDCARD              0x20
59
60 #define ENHANCEMENT_SPECIFY_MASK        0x40
61
62 #define CHARSUBSET_SPECIFIED            0x40
63
64 #define EPS             1.0e-20
65 #define XLFD_NDIGITS    3               /* Round numbers in pixel and
66                                            point arrays to this many
67                                            digits for repeatability */
68 double xlfd_round_double();
69
70 typedef struct _FontScalable {
71     int         values_supplied;        /* Bitmap identifying what advanced
72                                            capabilities or enhancements
73                                            were specified in the font name */
74     double      pixel_matrix[4];
75     double      point_matrix[4];
76
77     /* Pixel and point fields are deprecated in favor of the
78        transformation matrices.  They are provided and filled in for the
79        benefit of rasterizers that do not handle the matrices.  */
80
81     int         pixel,
82                 point;
83
84     int         x,
85                 y,
86                 width;
87     char        *xlfdName;
88     int         nranges;
89     fsRange     *ranges;
90 }           FontScalableRec, *FontScalablePtr;
91
92 extern Bool FontParseXLFDName();
93 extern fsRange *FontParseRanges();
94
95 #define FONT_XLFD_REPLACE_NONE  0
96 #define FONT_XLFD_REPLACE_STAR  1
97 #define FONT_XLFD_REPLACE_ZERO  2
98 #define FONT_XLFD_REPLACE_VALUE 3
99
100 #endif                          /* _FONTXLFD_H_ */