]> git.sesse.net Git - rdpsrv/blob - Xserver/lib/font/fontfile/defaults.c
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / lib / font / fontfile / defaults.c
1 /* $XConsortium: defaults.c,v 1.3 94/04/17 20:17:01 rws Exp $ */
2
3 /*
4
5 Copyright (c) 1990  X Consortium
6
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:
13
14 The above copyright notice and this permission notice shall be included in
15 all copies or substantial portions of the Software.
16
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.
23
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.
27
28 */
29
30 /*
31  * Author:  Keith Packard, MIT X Consortium
32  */
33
34 #include    <X11/X.h>
35 #include    <X11/Xproto.h>
36 #include    <servermd.h>
37
38 #ifndef DEFAULT_BIT_ORDER
39 #ifdef BITMAP_BIT_ORDER
40 #define DEFAULT_BIT_ORDER BITMAP_BIT_ORDER
41 #else
42 #define DEFAULT_BIT_ORDER MSBFirst
43 #endif
44 #endif
45
46 #ifndef DEFAULT_BYTE_ORDER
47 #ifdef IMAGE_BYTE_ORDER
48 #define DEFAULT_BYTE_ORDER IMAGE_BYTE_ORDER
49 #else
50 #define DEFAULT_BYTE_ORDER MSBFirst
51 #endif
52 #endif
53
54 #ifndef DEFAULT_GLYPH_PAD
55 #ifdef GLYPHPADBYTES
56 #define DEFAULT_GLYPH_PAD GLYPHPADBYTES
57 #else
58 #define DEFAULT_GLYPH_PAD 4
59 #endif
60 #endif
61
62 #ifndef DEFAULT_SCAN_UNIT
63 #define DEFAULT_SCAN_UNIT 1
64 #endif
65
66 FontDefaultFormat (bit, byte, glyph, scan)
67     int     *bit, *byte, *glyph, *scan;
68 {
69     *bit = DEFAULT_BIT_ORDER;
70     *byte = DEFAULT_BYTE_ORDER;
71     *glyph = DEFAULT_GLYPH_PAD;
72     *scan = DEFAULT_SCAN_UNIT;
73 }