1bbe1b32bSmrg/*
2bbe1b32bSmrgCopyright 1987, 1998  The Open Group
3bbe1b32bSmrg
4bbe1b32bSmrgPermission to use, copy, modify, distribute, and sell this software and its
5bbe1b32bSmrgdocumentation for any purpose is hereby granted without fee, provided that
6bbe1b32bSmrgthe above copyright notice appear in all copies and that both that
7bbe1b32bSmrgcopyright notice and this permission notice appear in supporting
8bbe1b32bSmrgdocumentation.
9bbe1b32bSmrg
10bbe1b32bSmrgThe above copyright notice and this permission notice shall be included in
11bbe1b32bSmrgall copies or substantial portions of the Software.
12bbe1b32bSmrg
13bbe1b32bSmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14bbe1b32bSmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15bbe1b32bSmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
16bbe1b32bSmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
17bbe1b32bSmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18bbe1b32bSmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19bbe1b32bSmrg
20bbe1b32bSmrgExcept as contained in this notice, the name of The Open Group shall not be
21bbe1b32bSmrgused in advertising or otherwise to promote the sale, use or other dealings
22bbe1b32bSmrgin this Software without prior written authorization from The Open Group.
23bbe1b32bSmrg * Copyright 1990, 1991 Network Computing Devices;
24bbe1b32bSmrg * Portions Copyright 1987 by Digital Equipment Corporation
25bbe1b32bSmrg *
26bbe1b32bSmrg * Permission to use, copy, modify, distribute, and sell this software and its
27bbe1b32bSmrg * documentation for any purpose is hereby granted without fee, provided that
28bbe1b32bSmrg * the above copyright notice appear in all copies and that both that
29bbe1b32bSmrg * copyright notice and this permission notice appear in supporting
30bbe1b32bSmrg * documentation, and that the names of Network Computing Devices,
31bbe1b32bSmrg * or Digital not be used in advertising or
32bbe1b32bSmrg * publicity pertaining to distribution of the software without specific,
33bbe1b32bSmrg * written prior permission.  Network Computing Devices, or Digital
34bbe1b32bSmrg * make no representations about the
35bbe1b32bSmrg * suitability of this software for any purpose.  It is provided "as is"
36bbe1b32bSmrg * without express or implied warranty.
37bbe1b32bSmrg *
38bbe1b32bSmrg * NETWORK COMPUTING DEVICES, AND DIGITAL DISCLAIM ALL WARRANTIES WITH
39bbe1b32bSmrg * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
40bbe1b32bSmrg * AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES, OR DIGITAL BE
41bbe1b32bSmrg * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
42bbe1b32bSmrg * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
43bbe1b32bSmrg * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
44bbe1b32bSmrg * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
45bbe1b32bSmrg *
46bbe1b32bSmrg */
47bbe1b32bSmrg
48bbe1b32bSmrg#ifndef CLOSESTR_H
49bbe1b32bSmrg#define CLOSESTR_H
50bbe1b32bSmrg
51bbe1b32bSmrg#include	<X11/fonts/FSproto.h>
52bbe1b32bSmrg#include	"closure.h"
53bbe1b32bSmrg#include	"misc.h"
54bbe1b32bSmrg#include	<X11/fonts/font.h>
55bbe1b32bSmrg
56bbe1b32bSmrg/* closure structures */
57bbe1b32bSmrg
58bbe1b32bSmrg/* OpenFont */
59bbe1b32bSmrg
60bbe1b32bSmrgtypedef struct _OFclosure {
61bbe1b32bSmrg    ClientPtr   client;
62bbe1b32bSmrg    short       current_fpe;
63bbe1b32bSmrg    short       num_fpes;
64bbe1b32bSmrg    FontPathElementPtr *fpe_list;
65bbe1b32bSmrg    Mask        flags;
66bbe1b32bSmrg    fsBitmapFormat format;
67bbe1b32bSmrg    fsBitmapFormatMask format_mask;
68bbe1b32bSmrg    Bool        slept;
69bbe1b32bSmrg    FSID        fontid;
70bbe1b32bSmrg    char       *fontname;
71bbe1b32bSmrg    int         fnamelen;
72bbe1b32bSmrg    char       *orig_name;
73bbe1b32bSmrg    int         orig_len;
74bbe1b32bSmrg    FontPtr	non_cachable_font;
75bbe1b32bSmrg}           OFclosureRec;
76bbe1b32bSmrg
77bbe1b32bSmrg/* QueryExtents */
78bbe1b32bSmrg
79bbe1b32bSmrgtypedef struct _QEclosure {
80bbe1b32bSmrg    ClientPtr   client;
81bbe1b32bSmrg    int         nranges;
82bbe1b32bSmrg    fsRange    *range;
83bbe1b32bSmrg    FontPtr     pfont;
84bbe1b32bSmrg    Mask        flags;
85bbe1b32bSmrg    Bool        slept;
86bbe1b32bSmrg}           QEclosureRec;
87bbe1b32bSmrg
88bbe1b32bSmrg/* QueryBitmaps */
89bbe1b32bSmrg
90bbe1b32bSmrgtypedef struct _QBclosure {
91bbe1b32bSmrg    ClientPtr   client;
92bbe1b32bSmrg    int         nranges;
93bbe1b32bSmrg    fsRange    *range;
94bbe1b32bSmrg    FontPtr     pfont;
95bbe1b32bSmrg    fsBitmapFormat format;
96bbe1b32bSmrg    Mask        flags;
97bbe1b32bSmrg    Bool        slept;
98bbe1b32bSmrg}           QBclosureRec;
99bbe1b32bSmrg
100bbe1b32bSmrg/* ListFontsWithInfo */
101bbe1b32bSmrg
102bbe1b32bSmrg#define XLFDMAXFONTNAMELEN	256
103bbe1b32bSmrgtypedef struct _LFWIstate {
104bbe1b32bSmrg    char        pattern[XLFDMAXFONTNAMELEN];  /* max len of font name */
105bbe1b32bSmrg    int         patlen;
106bbe1b32bSmrg    int         current_fpe;
107bbe1b32bSmrg    int         max_names;
108bbe1b32bSmrg    Bool        list_started;
109bbe1b32bSmrg    pointer     private;
110bbe1b32bSmrg}           LFWIstateRec, *LFWIstatePtr;
111bbe1b32bSmrg
112bbe1b32bSmrg
113bbe1b32bSmrgtypedef struct _LFWXIclosure {
114bbe1b32bSmrg    ClientPtr   client;
115bbe1b32bSmrg    int         num_fpes;
116bbe1b32bSmrg    FontPathElementPtr *fpe_list;
117bbe1b32bSmrg    fsListFontsWithXInfoReply *reply;
118bbe1b32bSmrg    int         length;
119bbe1b32bSmrg    LFWIstateRec current;
120bbe1b32bSmrg    LFWIstateRec saved;
121bbe1b32bSmrg    int         savedNumFonts;
122bbe1b32bSmrg    Bool        haveSaved;
123bbe1b32bSmrg    Bool        slept;
124bbe1b32bSmrg    char       *savedName;
125bbe1b32bSmrg}           LFWXIclosureRec;
126bbe1b32bSmrg
127bbe1b32bSmrgtypedef struct _LFclosure {
128bbe1b32bSmrg    ClientPtr   client;
129bbe1b32bSmrg    int         num_fpes;
130bbe1b32bSmrg    FontPathElementPtr *fpe_list;
131bbe1b32bSmrg    FontNamesPtr names;
132bbe1b32bSmrg    LFWIstateRec current;
133bbe1b32bSmrg    LFWIstateRec saved;
134bbe1b32bSmrg    Bool        haveSaved;
135bbe1b32bSmrg    Bool        slept;
136bbe1b32bSmrg    char	*savedName;
137bbe1b32bSmrg    int		savedNameLen;
138bbe1b32bSmrg}	LFclosureRec;
139bbe1b32bSmrg
140bbe1b32bSmrg#endif				/* CLOSESTR_H */
141