1 /* $XConsortium: fontxlfd.h,v 1.6 94/04/17 20:17:30 gildea Exp $ */
5 Copyright (c) 1990, 1994 X Consortium
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:
15 The above copyright notice and this permission notice shall be included
16 in all copies or substantial portions of the Software.
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.
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.
34 * Author: Keith Packard, MIT X Consortium
42 /* Constants for values_supplied bitmap */
44 #define SIZE_SPECIFY_MASK 0xf
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 */
52 #define POINTSIZE_MASK 0xc
53 #define POINTSIZE_UNDEFINED 0
54 #define POINTSIZE_SCALAR 0x4
55 #define POINTSIZE_ARRAY 0x8
57 #define PIXELSIZE_WILDCARD 0x10
58 #define POINTSIZE_WILDCARD 0x20
60 #define ENHANCEMENT_SPECIFY_MASK 0x40
62 #define CHARSUBSET_SPECIFIED 0x40
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();
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];
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. */
90 } FontScalableRec, *FontScalablePtr;
92 extern Bool FontParseXLFDName();
93 extern fsRange *FontParseRanges();
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
100 #endif /* _FONTXLFD_H_ */