1 | /***********************************************************
|
---|
2 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
|
---|
3 |
|
---|
4 | All Rights Reserved
|
---|
5 |
|
---|
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.
|
---|
13 |
|
---|
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
|
---|
20 | SOFTWARE.
|
---|
21 |
|
---|
22 | ******************************************************************/
|
---|
23 |
|
---|
24 | #ifndef DIXFONT_H
|
---|
25 | #define DIXFONT_H 1
|
---|
26 |
|
---|
27 | #include "dix.h"
|
---|
28 | #include <X11/fonts/font.h>
|
---|
29 | #include "closure.h"
|
---|
30 | #include <X11/fonts/fontstruct.h>
|
---|
31 |
|
---|
32 | #define NullDIXFontProp ((DIXFontPropPtr)0)
|
---|
33 |
|
---|
34 | typedef struct _DIXFontProp *DIXFontPropPtr;
|
---|
35 |
|
---|
36 | extern _X_EXPORT Bool SetDefaultFont(char * /*defaultfontname*/);
|
---|
37 |
|
---|
38 | extern _X_EXPORT void QueueFontWakeup(FontPathElementPtr /*fpe*/);
|
---|
39 |
|
---|
40 | extern _X_EXPORT void RemoveFontWakeup(FontPathElementPtr /*fpe*/);
|
---|
41 |
|
---|
42 | extern _X_EXPORT void FontWakeup(pointer /*data*/,
|
---|
43 | int /*count*/,
|
---|
44 | pointer /*LastSelectMask*/);
|
---|
45 |
|
---|
46 | extern _X_EXPORT int OpenFont(ClientPtr /*client*/,
|
---|
47 | XID /*fid*/,
|
---|
48 | Mask /*flags*/,
|
---|
49 | unsigned /*lenfname*/,
|
---|
50 | char * /*pfontname*/);
|
---|
51 |
|
---|
52 | extern _X_EXPORT int CloseFont(pointer /*pfont*/,
|
---|
53 | XID /*fid*/);
|
---|
54 |
|
---|
55 | typedef struct _xQueryFontReply *xQueryFontReplyPtr;
|
---|
56 |
|
---|
57 | extern _X_EXPORT void QueryFont(FontPtr /*pFont*/,
|
---|
58 | xQueryFontReplyPtr /*pReply*/,
|
---|
59 | int /*nProtoCCIStructs*/);
|
---|
60 |
|
---|
61 | extern _X_EXPORT int ListFonts(ClientPtr /*client*/,
|
---|
62 | unsigned char * /*pattern*/,
|
---|
63 | unsigned int /*length*/,
|
---|
64 | unsigned int /*max_names*/);
|
---|
65 |
|
---|
66 | extern _X_EXPORT int
|
---|
67 | doListFontsWithInfo(ClientPtr /*client*/,
|
---|
68 | LFWIclosurePtr /*c*/);
|
---|
69 |
|
---|
70 | extern _X_EXPORT int doPolyText(ClientPtr /*client*/,
|
---|
71 | PTclosurePtr /*c*/
|
---|
72 | );
|
---|
73 |
|
---|
74 | extern _X_EXPORT int PolyText(ClientPtr /*client*/,
|
---|
75 | DrawablePtr /*pDraw*/,
|
---|
76 | GCPtr /*pGC*/,
|
---|
77 | unsigned char * /*pElt*/,
|
---|
78 | unsigned char * /*endReq*/,
|
---|
79 | int /*xorg*/,
|
---|
80 | int /*yorg*/,
|
---|
81 | int /*reqType*/,
|
---|
82 | XID /*did*/);
|
---|
83 |
|
---|
84 | extern _X_EXPORT int doImageText(ClientPtr /*client*/,
|
---|
85 | ITclosurePtr /*c*/);
|
---|
86 |
|
---|
87 | extern _X_EXPORT int ImageText(ClientPtr /*client*/,
|
---|
88 | DrawablePtr /*pDraw*/,
|
---|
89 | GCPtr /*pGC*/,
|
---|
90 | int /*nChars*/,
|
---|
91 | unsigned char * /*data*/,
|
---|
92 | int /*xorg*/,
|
---|
93 | int /*yorg*/,
|
---|
94 | int /*reqType*/,
|
---|
95 | XID /*did*/);
|
---|
96 |
|
---|
97 | extern _X_EXPORT int SetFontPath(ClientPtr /*client*/,
|
---|
98 | int /*npaths*/,
|
---|
99 | unsigned char * /*paths*/);
|
---|
100 |
|
---|
101 | extern _X_EXPORT int SetDefaultFontPath(char * /*path*/);
|
---|
102 |
|
---|
103 | extern _X_EXPORT int GetFontPath(ClientPtr client,
|
---|
104 | int *count,
|
---|
105 | int *length,
|
---|
106 | unsigned char **result);
|
---|
107 |
|
---|
108 | extern _X_EXPORT void DeleteClientFontStuff(ClientPtr /*client*/);
|
---|
109 |
|
---|
110 | /* Quartz support on Mac OS X pulls in the QuickDraw
|
---|
111 | framework whose InitFonts function conflicts here. */
|
---|
112 | #ifdef __APPLE__
|
---|
113 | #define InitFonts Darwin_X_InitFonts
|
---|
114 | #endif
|
---|
115 | extern _X_EXPORT void InitFonts(void);
|
---|
116 |
|
---|
117 | extern _X_EXPORT void FreeFonts(void);
|
---|
118 |
|
---|
119 | extern _X_EXPORT FontPtr find_old_font(XID /*id*/);
|
---|
120 |
|
---|
121 | extern _X_EXPORT void GetGlyphs(FontPtr /*font*/,
|
---|
122 | unsigned long /*count*/,
|
---|
123 | unsigned char * /*chars*/,
|
---|
124 | FontEncoding /*fontEncoding*/,
|
---|
125 | unsigned long * /*glyphcount*/,
|
---|
126 | CharInfoPtr * /*glyphs*/);
|
---|
127 |
|
---|
128 | extern _X_EXPORT void QueryGlyphExtents(FontPtr /*pFont*/,
|
---|
129 | CharInfoPtr * /*charinfo*/,
|
---|
130 | unsigned long /*count*/,
|
---|
131 | ExtentInfoPtr /*info*/);
|
---|
132 |
|
---|
133 | extern _X_EXPORT Bool QueryTextExtents(FontPtr /*pFont*/,
|
---|
134 | unsigned long /*count*/,
|
---|
135 | unsigned char * /*chars*/,
|
---|
136 | ExtentInfoPtr /*info*/);
|
---|
137 |
|
---|
138 | extern _X_EXPORT Bool ParseGlyphCachingMode(char * /*str*/);
|
---|
139 |
|
---|
140 | extern _X_EXPORT void InitGlyphCaching(void);
|
---|
141 |
|
---|
142 | extern _X_EXPORT void SetGlyphCachingMode(int /*newmode*/);
|
---|
143 |
|
---|
144 | extern _X_EXPORT void register_fpe_functions(void);
|
---|
145 |
|
---|
146 | /*
|
---|
147 | * libXfont stubs.
|
---|
148 | */
|
---|
149 | extern _X_EXPORT int client_auth_generation(ClientPtr client);
|
---|
150 |
|
---|
151 | extern _X_EXPORT void DeleteFontClientID(Font id);
|
---|
152 |
|
---|
153 | extern _X_EXPORT FontResolutionPtr GetClientResolutions(int *num);
|
---|
154 |
|
---|
155 | extern _X_EXPORT int GetDefaultPointSize(void);
|
---|
156 |
|
---|
157 | extern _X_EXPORT Font GetNewFontClientID(void);
|
---|
158 |
|
---|
159 | extern _X_EXPORT int init_fs_handlers(FontPathElementPtr fpe,
|
---|
160 | BlockHandlerProcPtr block_handler);
|
---|
161 |
|
---|
162 | extern _X_EXPORT int RegisterFPEFunctions(NameCheckFunc name_func,
|
---|
163 | InitFpeFunc init_func,
|
---|
164 | FreeFpeFunc free_func,
|
---|
165 | ResetFpeFunc reset_func,
|
---|
166 | OpenFontFunc open_func,
|
---|
167 | CloseFontFunc close_func,
|
---|
168 | ListFontsFunc list_func,
|
---|
169 | StartLfwiFunc start_lfwi_func,
|
---|
170 | NextLfwiFunc next_lfwi_func,
|
---|
171 | WakeupFpeFunc wakeup_func,
|
---|
172 | ClientDiedFunc client_died,
|
---|
173 | LoadGlyphsFunc load_glyphs,
|
---|
174 | StartLaFunc start_list_alias_func,
|
---|
175 | NextLaFunc next_list_alias_func,
|
---|
176 | SetPathFunc set_path_func);
|
---|
177 |
|
---|
178 | extern _X_EXPORT void remove_fs_handlers(FontPathElementPtr fpe,
|
---|
179 | BlockHandlerProcPtr blockHandler,
|
---|
180 | Bool all);
|
---|
181 |
|
---|
182 | extern _X_EXPORT int StoreFontClientFont(FontPtr pfont, Font id);
|
---|
183 |
|
---|
184 | #endif /* DIXFONT_H */
|
---|