1 /* $XConsortium: dixfont.h /main/21 1996/09/28 17:14:16 rws $ */
2 /* $XFree86: xc/programs/Xserver/include/dixfont.h,v 3.1 1996/12/23 07:09:25 dawes Exp $ */
3 /***********************************************************
4 Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
8 Permission to use, copy, modify, and distribute this software and its
9 documentation for any purpose and without fee is hereby granted,
10 provided that the above copyright notice appear in all copies and that
11 both that copyright notice and this permission notice appear in
12 supporting documentation, and that the name of Digital not be
13 used in advertising or publicity pertaining to distribution of the
14 software without specific, written prior permission.
16 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
17 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
18 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
19 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
21 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
24 ******************************************************************/
33 #define NullDIXFontProp ((DIXFontPropPtr)0)
35 typedef struct _DIXFontProp *DIXFontPropPtr;
37 extern int FontToXError(
38 #if NeedFunctionPrototypes
43 extern Bool SetDefaultFont(
44 #if NeedFunctionPrototypes
45 char * /*defaultfontname*/
49 extern void QueueFontWakeup(
50 #if NeedFunctionPrototypes
51 FontPathElementPtr /*fpe*/
55 extern void RemoveFontWakeup(
56 #if NeedFunctionPrototypes
57 FontPathElementPtr /*fpe*/
61 extern void FontWakeup(
62 #if NeedFunctionPrototypes
65 pointer /*LastSelectMask*/
70 #if NeedFunctionPrototypes
74 unsigned /*lenfname*/,
80 #if NeedFunctionPrototypes
86 typedef struct _xQueryFontReply *xQueryFontReplyPtr;
88 extern void QueryFont(
89 #if NeedFunctionPrototypes
91 xQueryFontReplyPtr /*pReply*/,
92 int /*nProtoCCIStructs*/
97 #if NeedFunctionPrototypes
99 unsigned char * /*pattern*/,
100 unsigned int /*length*/,
101 unsigned int /*max_names*/
107 #if NeedFunctionPrototypes
108 ClientPtr /*client*/,
113 extern int doPolyText(
114 #if NeedFunctionPrototypes
115 ClientPtr /*client*/,
121 #if NeedFunctionPrototypes
122 ClientPtr /*client*/,
123 DrawablePtr /*pDraw*/,
125 unsigned char * /*pElt*/,
126 unsigned char * /*endReq*/,
134 extern int doImageText(
135 #if NeedFunctionPrototypes
136 ClientPtr /*client*/,
141 extern int ImageText(
142 #if NeedFunctionPrototypes
143 ClientPtr /*client*/,
144 DrawablePtr /*pDraw*/,
147 unsigned char * /*data*/,
155 extern int SetFontPath(
156 #if NeedFunctionPrototypes
157 ClientPtr /*client*/,
159 unsigned char * /*paths*/,
164 extern int SetDefaultFontPath(
165 #if NeedFunctionPrototypes
170 extern unsigned char *GetFontPath(
171 #if NeedFunctionPrototypes
177 extern int LoadGlyphs(
178 #if NeedFunctionPrototypes
179 ClientPtr /*client*/,
183 unsigned char * /*data*/
187 extern void DeleteClientFontStuff(
188 #if NeedFunctionPrototypes
193 extern void InitFonts(
194 #if NeedFunctionPrototypes
199 extern int GetDefaultPointSize(
200 #if NeedFunctionPrototypes
205 extern FontResolutionPtr GetClientResolutions(
206 #if NeedFunctionPrototypes
211 /* This is related to 'struct _FPEFunctions' in fonts/include/fontstruct.h
213 extern int RegisterFPEFunctions(
214 #if NeedFunctionPrototypes
215 int (* /*name_func*/)(
216 #if NeedNestedPrototypes
220 int (* /*init_func*/)(
221 #if NeedNestedPrototypes
222 FontPathElementPtr /* fpe */
225 int (* /*free_func*/)(
226 #if NeedNestedPrototypes
227 FontPathElementPtr /* fpe */
230 int (* /*reset_func*/)(
231 #if NeedNestedPrototypes
232 FontPathElementPtr /* fpe */
235 int (* /*open_func*/)(
236 #if NeedNestedPrototypes
237 pointer /* client */,
238 FontPathElementPtr /* fpe */,
242 fsBitmapFormat /* format */,
243 fsBitmapFormatMask /* fmask */,
244 unsigned long /* id (type XID or FSID) */,
245 FontPtr* /* pFont */,
246 char** /* aliasName */,
247 FontPtr /* non_cachable_font */
250 int (* /*close_func*/)(
251 #if NeedNestedPrototypes
252 FontPathElementPtr /* fpe */,
256 int (* /*list_func*/)(
257 #if NeedNestedPrototypes
258 pointer /* client */,
259 FontPathElementPtr /* fpe */,
263 FontNamesPtr /* names */
266 int (* /*start_lfwi_func*/)(
267 #if NeedNestedPrototypes
268 pointer /* client */,
269 FontPathElementPtr /* fpe */,
273 pointer* /* privatep */
276 int (* /*next_lfwi_func*/)(
277 #if NeedNestedPrototypes
278 pointer /* client */,
279 FontPathElementPtr /* fpe */,
282 FontInfoPtr* /* info */,
284 pointer /* private */
287 int (* /*wakeup_func*/)(
288 #if NeedNestedPrototypes
289 FontPathElementPtr /* fpe */,
290 unsigned long* /* LastSelectMask */
293 int (* /*client_died*/)(
294 #if NeedNestedPrototypes
295 pointer /* client */,
296 FontPathElementPtr /* fpe */
299 int (* /*load_glyphs*/)(
300 #if NeedNestedPrototypes
301 pointer /* client */,
303 Bool /* range_flag */,
304 unsigned int /* nchars */,
306 unsigned char* /* data */
309 int (* /*start_list_alias_func*/)(
310 #if NeedNestedPrototypes
311 pointer /* client */,
312 FontPathElementPtr /* fpe */,
316 pointer* /* privatep */
319 int (* /*next_list_alias_func*/)(
320 #if NeedNestedPrototypes
321 pointer /* client */,
322 FontPathElementPtr /* fpe */,
325 char** /* resolvedp */,
326 int* /* resolvedlenp */,
327 pointer /* private */
330 void (* /* set_path_func*/)(
331 #if NeedFunctionPrototypes
338 extern void FreeFonts(
339 #if NeedFunctionPrototypes
344 extern FontPtr find_old_font(
345 #if NeedFunctionPrototypes
350 extern Font GetNewFontClientID(
351 #if NeedFunctionPrototypes
356 extern int StoreFontClientFont(
357 #if NeedFunctionPrototypes
363 extern void DeleteFontClientID(
364 #if NeedFunctionPrototypes
369 extern int client_auth_generation(
370 #if NeedFunctionPrototypes
375 extern int init_fs_handlers(
376 #if NeedFunctionPrototypes
377 FontPathElementPtr /*fpe*/,
378 BlockHandlerProcPtr /*block_handler*/
382 extern void remove_fs_handlers(
383 #if NeedFunctionPrototypes
384 FontPathElementPtr /*fpe*/,
385 BlockHandlerProcPtr /*block_handler*/,
390 extern void GetGlyphs(
391 #if NeedFunctionPrototypes
393 unsigned long /*count*/,
394 unsigned char * /*chars*/,
395 FontEncoding /*fontEncoding*/,
396 unsigned long * /*glyphcount*/,
397 CharInfoPtr * /*glyphs*/
401 extern void QueryGlyphExtents(
402 #if NeedFunctionPrototypes
404 CharInfoPtr * /*charinfo*/,
405 unsigned long /*count*/,
406 ExtentInfoPtr /*info*/
410 extern Bool QueryTextExtents(
411 #if NeedFunctionPrototypes
413 unsigned long /*count*/,
414 unsigned char * /*chars*/,
415 ExtentInfoPtr /*info*/
419 extern Bool ParseGlyphCachingMode(
420 #if NeedFunctionPrototypes
425 extern void InitGlyphCaching(
426 #if NeedFunctionPrototypes
431 extern void SetGlyphCachingMode(
432 #if NeedFunctionPrototypes
438 ResetFontPrivateIndex(
439 #if NeedFunctionPrototypes
444 #endif /* DIXFONT_H */