summaryrefslogtreecommitdiff
path: root/include/dixfont.h
blob: b35e252bf5a49a764588a0e40fdd20b3b994031c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
/* $Xorg: dixfont.h,v 1.3 2000/08/17 19:53:29 cpqbld Exp $ */
/***********************************************************
Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.

                        All Rights Reserved

Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
software without specific, written prior permission.

DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.

******************************************************************/

#ifndef DIXFONT_H
#define DIXFONT_H 1

#include <dix.h>
#include <font.h>
#include <closure.h>

#define NullDIXFontProp ((DIXFontPropPtr)0)

typedef struct _DIXFontProp *DIXFontPropPtr;

extern int FontToXError(
#if NeedFunctionPrototypes
    int /*err*/
#endif
);

extern Bool SetDefaultFont(
#if NeedFunctionPrototypes
    char * /*defaultfontname*/
#endif
);

extern void QueueFontWakeup(
#if NeedFunctionPrototypes
    FontPathElementPtr /*fpe*/
#endif
);

extern void RemoveFontWakeup(
#if NeedFunctionPrototypes
    FontPathElementPtr /*fpe*/
#endif
);

extern void FontWakeup(
#if NeedFunctionPrototypes
    pointer /*data*/,
    int /*count*/,
    pointer /*LastSelectMask*/
#endif
);

extern int OpenFont(
#if NeedFunctionPrototypes
    ClientPtr /*client*/,
    XID /*fid*/,
    Mask /*flags*/,
    unsigned /*lenfname*/,
    char * /*pfontname*/
#endif
);

extern int CloseFont(
#if NeedFunctionPrototypes
    pointer /*pfont*/,
    XID /*fid*/
#endif
);

typedef struct _xQueryFontReply *xQueryFontReplyPtr;

extern void QueryFont(
#if NeedFunctionPrototypes
    FontPtr /*pFont*/,
    xQueryFontReplyPtr /*pReply*/,
    int /*nProtoCCIStructs*/
#endif
);

extern int ListFonts(
#if NeedFunctionPrototypes
    ClientPtr /*client*/,
    unsigned char * /*pattern*/,
    unsigned int /*length*/,
    unsigned int /*max_names*/
#endif
);

extern int doPolyText(
#if NeedFunctionPrototypes
    ClientPtr /*client*/,
    PTclosurePtr /*c*/
#endif
);

extern int PolyText(
#if NeedFunctionPrototypes
    ClientPtr /*client*/,
    DrawablePtr /*pDraw*/,
    GCPtr /*pGC*/,
    unsigned char * /*pElt*/,
    unsigned char * /*endReq*/,
    int /*xorg*/,
    int /*yorg*/,
    int /*reqType*/,
    XID /*did*/
#endif
);

extern int doImageText(
#if NeedFunctionPrototypes
    ClientPtr /*client*/,
    ITclosurePtr /*c*/
#endif
);

extern int ImageText(
#if NeedFunctionPrototypes
    ClientPtr /*client*/,
    DrawablePtr /*pDraw*/,
    GCPtr /*pGC*/,
    int /*nChars*/,
    unsigned char * /*data*/,
    int /*xorg*/,
    int /*yorg*/,
    int /*reqType*/,
    XID /*did*/
#endif
);

extern int SetFontPath(
#if NeedFunctionPrototypes
    ClientPtr /*client*/,
    int /*npaths*/,
    unsigned char * /*paths*/,
    int * /*error*/
#endif
);

extern int SetDefaultFontPath(
#if NeedFunctionPrototypes
    char * /*path*/
#endif
);

extern unsigned char *GetFontPath(
#if NeedFunctionPrototypes
    int * /*count*/,
    int * /*length*/
#endif
);

extern int LoadGlyphs(
#if NeedFunctionPrototypes
    ClientPtr /*client*/,
    FontPtr /*pfont*/,
    unsigned /*nchars*/,
    int /*item_size*/,
    unsigned char * /*data*/
#endif
);

extern void DeleteClientFontStuff(
#if NeedFunctionPrototypes
    ClientPtr /*client*/
#endif
);

extern void InitFonts(
#if NeedFunctionPrototypes
    void
#endif
);

extern int GetDefaultPointSize(
#if NeedFunctionPrototypes
    void
#endif
);

extern FontResolutionPtr GetClientResolutions(
#if NeedFunctionPrototypes
    int * /*num*/
#endif
);

/* XXX leave these unprototyped for now -- need to do groundwork in 
 * fonts/include/fontstruct.h before we do these
 */
extern int RegisterFPEFunctions(
#if NeedFunctionPrototypes
    Bool (* /*name_func*/)(),
    int (* /*init_func*/)(),
    int (* /*free_func*/)(),
    int (* /*reset_func*/)(),
    int (* /*open_func*/)(),
    int (* /*close_func*/)(),
    int (* /*list_func*/)(),
    int (* /*start_lfwi_func*/)(),
    int (* /*next_lfwi_func*/)(),
    int (* /*wakeup_func*/)(),
    int (* /*client_died*/)(),
    int (* /*load_glyphs*/)(),
    int (* /*start_list_alias_func*/)(),
    int (* /*next_list_alias_func*/)(),
    void (* /* set_path_func*/) ()
#endif
);

extern void FreeFonts(
#if NeedFunctionPrototypes
    void
#endif
);

extern FontPtr find_old_font(
#if NeedFunctionPrototypes
    XID /*id*/
#endif
);

extern Font GetNewFontClientID(
#if NeedFunctionPrototypes
    void
#endif
);

extern int StoreFontClientFont(
#if NeedFunctionPrototypes
    FontPtr /*pfont*/,
    Font /*id*/
#endif
);

extern void DeleteFontClientID(
#if NeedFunctionPrototypes
    Font /*id*/
#endif
);

extern int client_auth_generation(
#if NeedFunctionPrototypes
    ClientPtr /*client*/
#endif
);

extern int init_fs_handlers(
#if NeedFunctionPrototypes
    FontPathElementPtr /*fpe*/,
    BlockHandlerProcPtr /*block_handler*/
#endif
);

extern void remove_fs_handlers(
#if NeedFunctionPrototypes
    FontPathElementPtr /*fpe*/,
    BlockHandlerProcPtr /*block_handler*/,
    Bool /*all*/
#endif
);

extern void GetGlyphs(
#if NeedFunctionPrototypes
    FontPtr     /*font*/,
    unsigned long /*count*/,
    unsigned char * /*chars*/,
    FontEncoding /*fontEncoding*/,
    unsigned long * /*glyphcount*/,
    CharInfoPtr * /*glyphs*/
#endif
);

extern void QueryGlyphExtents(
#if NeedFunctionPrototypes
    FontPtr     /*pFont*/,
    CharInfoPtr * /*charinfo*/,
    unsigned long /*count*/,
    ExtentInfoPtr /*info*/
#endif
);

extern Bool QueryTextExtents(
#if NeedFunctionPrototypes
    FontPtr     /*pFont*/,
    unsigned long /*count*/,
    unsigned char * /*chars*/,
    ExtentInfoPtr /*info*/
#endif
);

extern Bool ParseGlyphCachingMode(
#if NeedFunctionPrototypes
    char * /*str*/
#endif
);

extern void InitGlyphCaching(
#if NeedFunctionPrototypes
    void
#endif
);

extern void SetGlyphCachingMode(
#if NeedFunctionPrototypes
    int /*newmode*/
#endif
);

void
ResetFontPrivateIndex(
#if NeedFunctionPrototypes
    void
#endif
);

#endif				/* DIXFONT_H */