1 /* $XConsortium: defaults.c,v 1.3 94/04/17 20:17:01 rws Exp $ */
5 Copyright (c) 1990 X Consortium
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 copies of the Software, and to permit persons to whom the Software is
12 furnished to do so, subject to the following conditions:
14 The above copyright notice and this permission notice shall be included in
15 all copies or substantial portions of the Software.
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 Except as contained in this notice, the name of the X Consortium shall not be
25 used in advertising or otherwise to promote the sale, use or other dealings
26 in this Software without prior written authorization from the X Consortium.
31 * Author: Keith Packard, MIT X Consortium
35 #include <X11/Xproto.h>
38 #ifndef DEFAULT_BIT_ORDER
39 #ifdef BITMAP_BIT_ORDER
40 #define DEFAULT_BIT_ORDER BITMAP_BIT_ORDER
42 #define DEFAULT_BIT_ORDER MSBFirst
46 #ifndef DEFAULT_BYTE_ORDER
47 #ifdef IMAGE_BYTE_ORDER
48 #define DEFAULT_BYTE_ORDER IMAGE_BYTE_ORDER
50 #define DEFAULT_BYTE_ORDER MSBFirst
54 #ifndef DEFAULT_GLYPH_PAD
56 #define DEFAULT_GLYPH_PAD GLYPHPADBYTES
58 #define DEFAULT_GLYPH_PAD 4
62 #ifndef DEFAULT_SCAN_UNIT
63 #define DEFAULT_SCAN_UNIT 1
66 FontDefaultFormat (bit, byte, glyph, scan)
67 int *bit, *byte, *glyph, *scan;
69 *bit = DEFAULT_BIT_ORDER;
70 *byte = DEFAULT_BYTE_ORDER;
71 *glyph = DEFAULT_GLYPH_PAD;
72 *scan = DEFAULT_SCAN_UNIT;