1fa2b3b63Smrg/*
2fa2b3b63Smrg
3fa2b3b63SmrgCopyright 1990, 1998  The Open Group
4fa2b3b63Smrg
5fa2b3b63SmrgPermission to use, copy, modify, distribute, and sell this software and its
6fa2b3b63Smrgdocumentation for any purpose is hereby granted without fee, provided that
7fa2b3b63Smrgthe above copyright notice appear in all copies and that both that
8fa2b3b63Smrgcopyright notice and this permission notice appear in supporting
9fa2b3b63Smrgdocumentation.
10fa2b3b63Smrg
11fa2b3b63SmrgThe above copyright notice and this permission notice shall be included in
12fa2b3b63Smrgall copies or substantial portions of the Software.
13fa2b3b63Smrg
14fa2b3b63SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15fa2b3b63SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16fa2b3b63SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
17fa2b3b63SmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18fa2b3b63SmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19fa2b3b63SmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20fa2b3b63Smrg
21fa2b3b63SmrgExcept as contained in this notice, the name of The Open Group shall not be
22fa2b3b63Smrgused in advertising or otherwise to promote the sale, use or other dealings
23fa2b3b63Smrgin this Software without prior written authorization from The Open Group.
24fa2b3b63Smrg
25fa2b3b63Smrg*/
26fa2b3b63Smrg
27fa2b3b63Smrg/*
28fa2b3b63Smrg * Author:  Keith Packard, MIT X Consortium
29fa2b3b63Smrg */
30fa2b3b63Smrg
31fa2b3b63Smrg#ifdef HAVE_CONFIG_H
32fa2b3b63Smrg#include <config.h>
33fa2b3b63Smrg#endif
34fa2b3b63Smrg#include    <X11/X.h>
35fa2b3b63Smrg#include    <X11/Xproto.h>
36fa2b3b63Smrg
37fa2b3b63Smrg#ifndef DEFAULT_BIT_ORDER
38fa2b3b63Smrg#ifdef BITMAP_BIT_ORDER
39fa2b3b63Smrg#define DEFAULT_BIT_ORDER BITMAP_BIT_ORDER
40fa2b3b63Smrg#else
41fa2b3b63Smrg#define DEFAULT_BIT_ORDER MSBFirst
42fa2b3b63Smrg#endif
43fa2b3b63Smrg#endif
44fa2b3b63Smrg
45fa2b3b63Smrg#ifndef DEFAULT_BYTE_ORDER
46fa2b3b63Smrg#ifdef IMAGE_BYTE_ORDER
47fa2b3b63Smrg#define DEFAULT_BYTE_ORDER IMAGE_BYTE_ORDER
48fa2b3b63Smrg#else
49fa2b3b63Smrg#define DEFAULT_BYTE_ORDER MSBFirst
50fa2b3b63Smrg#endif
51fa2b3b63Smrg#endif
52fa2b3b63Smrg
53fa2b3b63Smrg#ifndef DEFAULT_GLYPH_PAD
54fa2b3b63Smrg#ifdef GLYPHPADBYTES
55fa2b3b63Smrg#define DEFAULT_GLYPH_PAD GLYPHPADBYTES
56fa2b3b63Smrg#else
57fa2b3b63Smrg#define DEFAULT_GLYPH_PAD 4
58fa2b3b63Smrg#endif
59fa2b3b63Smrg#endif
60fa2b3b63Smrg
61fa2b3b63Smrg#ifndef DEFAULT_SCAN_UNIT
62fa2b3b63Smrg#define DEFAULT_SCAN_UNIT 1
63fa2b3b63Smrg#endif
64fa2b3b63Smrg
65fa2b3b63Smrg#include "fntfilst.h"
66fa2b3b63Smrg
67fa2b3b63Smrgvoid
68e24f450bSmrgFontDefaultFormat(int *bit, int *byte, int *glyph, int *scan)
69fa2b3b63Smrg{
70fa2b3b63Smrg    *bit = DEFAULT_BIT_ORDER;
71fa2b3b63Smrg    *byte = DEFAULT_BYTE_ORDER;
72fa2b3b63Smrg    *glyph = DEFAULT_GLYPH_PAD;
73fa2b3b63Smrg    *scan = DEFAULT_SCAN_UNIT;
74fa2b3b63Smrg}
75