1 /***********************************************************
2 Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
6 Permission to use, copy, modify, and distribute this software and its
7 documentation for any purpose and without fee is hereby granted,
8 provided that the above copyright notice appear in all copies and that
9 both that copyright notice and this permission notice appear in
10 supporting documentation, and that the name of Digital not be
11 used in advertising or publicity pertaining to distribution of the
12 software without specific, written prior permission.
14 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
15 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
16 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
17 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
18 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
19 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
22 ******************************************************************/
28 #include <X11/fonts/font.h>
30 #include <X11/fonts/fontstruct.h>
31 #include <X11/fonts/fontproto.h>
33 #define NullDIXFontProp ((DIXFontPropPtr)0)
35 typedef struct _DIXFontProp
*DIXFontPropPtr
;
37 extern _X_EXPORT Bool
SetDefaultFont(char * /*defaultfontname */ );
39 extern _X_EXPORT
void QueueFontWakeup(FontPathElementPtr
/*fpe */ );
41 extern _X_EXPORT
void RemoveFontWakeup(FontPathElementPtr
/*fpe */ );
43 extern _X_EXPORT
void FontWakeup(pointer
/*data */ ,
45 pointer
/*LastSelectMask */ );
47 extern _X_EXPORT
int OpenFont(ClientPtr
/*client */ ,
50 unsigned /*lenfname */ ,
51 char * /*pfontname */ );
53 extern _X_EXPORT
int CloseFont(pointer
/*pfont */ ,
56 typedef struct _xQueryFontReply
*xQueryFontReplyPtr
;
58 extern _X_EXPORT
void QueryFont(FontPtr
/*pFont */ ,
59 xQueryFontReplyPtr
/*pReply */ ,
60 int /*nProtoCCIStructs */ );
62 extern _X_EXPORT
int ListFonts(ClientPtr
/*client */ ,
63 unsigned char * /*pattern */ ,
64 unsigned int /*length */ ,
65 unsigned int /*max_names */ );
68 doListFontsWithInfo(ClientPtr
/*client */ ,
69 LFWIclosurePtr
/*c */ );
71 extern _X_EXPORT
int doPolyText(ClientPtr
/*client */ ,
75 extern _X_EXPORT
int PolyText(ClientPtr
/*client */ ,
76 DrawablePtr
/*pDraw */ ,
78 unsigned char * /*pElt */ ,
79 unsigned char * /*endReq */ ,
85 extern _X_EXPORT
int doImageText(ClientPtr
/*client */ ,
86 ITclosurePtr
/*c */ );
88 extern _X_EXPORT
int ImageText(ClientPtr
/*client */ ,
89 DrawablePtr
/*pDraw */ ,
92 unsigned char * /*data */ ,
98 extern _X_EXPORT
int SetFontPath(ClientPtr
/*client */ ,
100 unsigned char * /*paths */ );
102 extern _X_EXPORT
int SetDefaultFontPath(char * /*path */ );
104 extern _X_EXPORT
int GetFontPath(ClientPtr client
,
106 int *length
, unsigned char **result
);
108 extern _X_EXPORT
void DeleteClientFontStuff(ClientPtr
/*client */ );
110 /* Quartz support on Mac OS X pulls in the QuickDraw
111 framework whose InitFonts function conflicts here. */
113 #define InitFonts Darwin_X_InitFonts
115 extern _X_EXPORT
void InitFonts(void);
117 extern _X_EXPORT
void FreeFonts(void);
119 extern _X_EXPORT FontPtr
find_old_font(XID
/*id */ );
121 #define GetGlyphs dixGetGlyphs
122 extern _X_EXPORT
void dixGetGlyphs(FontPtr
/*font */ ,
123 unsigned long /*count */ ,
124 unsigned char * /*chars */ ,
125 FontEncoding
/*fontEncoding */ ,
126 unsigned long * /*glyphcount */ ,
127 CharInfoPtr
* /*glyphs */ );
129 extern _X_EXPORT
void QueryGlyphExtents(FontPtr
/*pFont */ ,
130 CharInfoPtr
* /*charinfo */ ,
131 unsigned long /*count */ ,
132 ExtentInfoPtr
/*info */ );
134 extern _X_EXPORT Bool
QueryTextExtents(FontPtr
/*pFont */ ,
135 unsigned long /*count */ ,
136 unsigned char * /*chars */ ,
137 ExtentInfoPtr
/*info */ );
139 extern _X_EXPORT Bool
ParseGlyphCachingMode(char * /*str */ );
141 extern _X_EXPORT
void InitGlyphCaching(void);
143 extern _X_EXPORT
void SetGlyphCachingMode(int /*newmode */ );
145 extern _X_EXPORT
void register_fpe_functions(void);
147 #endif /* DIXFONT_H */