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 FPEFunctions *fpe_functions;
|
---|
37 |
|
---|
38 | extern int FontToXError(int /*err*/);
|
---|
39 |
|
---|
40 | extern Bool SetDefaultFont(char * /*defaultfontname*/);
|
---|
41 |
|
---|
42 | extern void QueueFontWakeup(FontPathElementPtr /*fpe*/);
|
---|
43 |
|
---|
44 | extern void RemoveFontWakeup(FontPathElementPtr /*fpe*/);
|
---|
45 |
|
---|
46 | extern void FontWakeup(pointer /*data*/,
|
---|
47 | int /*count*/,
|
---|
48 | pointer /*LastSelectMask*/);
|
---|
49 |
|
---|
50 | extern int OpenFont(ClientPtr /*client*/,
|
---|
51 | XID /*fid*/,
|
---|
52 | Mask /*flags*/,
|
---|
53 | unsigned /*lenfname*/,
|
---|
54 | char * /*pfontname*/);
|
---|
55 |
|
---|
56 | extern int CloseFont(pointer /*pfont*/,
|
---|
57 | XID /*fid*/);
|
---|
58 |
|
---|
59 | typedef struct _xQueryFontReply *xQueryFontReplyPtr;
|
---|
60 |
|
---|
61 | extern void QueryFont(FontPtr /*pFont*/,
|
---|
62 | xQueryFontReplyPtr /*pReply*/,
|
---|
63 | int /*nProtoCCIStructs*/);
|
---|
64 |
|
---|
65 | extern int ListFonts(ClientPtr /*client*/,
|
---|
66 | unsigned char * /*pattern*/,
|
---|
67 | unsigned int /*length*/,
|
---|
68 | unsigned int /*max_names*/);
|
---|
69 |
|
---|
70 | int
|
---|
71 | doListFontsWithInfo(ClientPtr /*client*/,
|
---|
72 | LFWIclosurePtr /*c*/);
|
---|
73 |
|
---|
74 | extern int doPolyText(ClientPtr /*client*/,
|
---|
75 | PTclosurePtr /*c*/
|
---|
76 | );
|
---|
77 |
|
---|
78 | extern int PolyText(ClientPtr /*client*/,
|
---|
79 | DrawablePtr /*pDraw*/,
|
---|
80 | GCPtr /*pGC*/,
|
---|
81 | unsigned char * /*pElt*/,
|
---|
82 | unsigned char * /*endReq*/,
|
---|
83 | int /*xorg*/,
|
---|
84 | int /*yorg*/,
|
---|
85 | int /*reqType*/,
|
---|
86 | XID /*did*/);
|
---|
87 |
|
---|
88 | extern int doImageText(ClientPtr /*client*/,
|
---|
89 | ITclosurePtr /*c*/);
|
---|
90 |
|
---|
91 | extern int ImageText(ClientPtr /*client*/,
|
---|
92 | DrawablePtr /*pDraw*/,
|
---|
93 | GCPtr /*pGC*/,
|
---|
94 | int /*nChars*/,
|
---|
95 | unsigned char * /*data*/,
|
---|
96 | int /*xorg*/,
|
---|
97 | int /*yorg*/,
|
---|
98 | int /*reqType*/,
|
---|
99 | XID /*did*/);
|
---|
100 |
|
---|
101 | extern int SetFontPath(ClientPtr /*client*/,
|
---|
102 | int /*npaths*/,
|
---|
103 | unsigned char * /*paths*/,
|
---|
104 | int * /*error*/);
|
---|
105 |
|
---|
106 | extern int SetDefaultFontPath(char * /*path*/);
|
---|
107 |
|
---|
108 | extern unsigned char *GetFontPath(int * /*count*/,
|
---|
109 | int * /*length*/);
|
---|
110 |
|
---|
111 | extern int LoadGlyphs(ClientPtr /*client*/,
|
---|
112 | FontPtr /*pfont*/,
|
---|
113 | unsigned /*nchars*/,
|
---|
114 | int /*item_size*/,
|
---|
115 | unsigned char * /*data*/);
|
---|
116 |
|
---|
117 | extern void DeleteClientFontStuff(ClientPtr /*client*/);
|
---|
118 |
|
---|
119 | /* Quartz support on Mac OS X pulls in the QuickDraw
|
---|
120 | framework whose InitFonts function conflicts here. */
|
---|
121 | #ifdef __DARWIN__
|
---|
122 | #define InitFonts Darwin_X_InitFonts
|
---|
123 | #endif
|
---|
124 | extern void InitFonts(void);
|
---|
125 |
|
---|
126 | extern void FreeFonts(void);
|
---|
127 |
|
---|
128 | extern FontPtr find_old_font(XID /*id*/);
|
---|
129 |
|
---|
130 | extern void GetGlyphs(FontPtr /*font*/,
|
---|
131 | unsigned long /*count*/,
|
---|
132 | unsigned char * /*chars*/,
|
---|
133 | FontEncoding /*fontEncoding*/,
|
---|
134 | unsigned long * /*glyphcount*/,
|
---|
135 | CharInfoPtr * /*glyphs*/);
|
---|
136 |
|
---|
137 | extern void QueryGlyphExtents(FontPtr /*pFont*/,
|
---|
138 | CharInfoPtr * /*charinfo*/,
|
---|
139 | unsigned long /*count*/,
|
---|
140 | ExtentInfoPtr /*info*/);
|
---|
141 |
|
---|
142 | extern Bool QueryTextExtents(FontPtr /*pFont*/,
|
---|
143 | unsigned long /*count*/,
|
---|
144 | unsigned char * /*chars*/,
|
---|
145 | ExtentInfoPtr /*info*/);
|
---|
146 |
|
---|
147 | extern Bool ParseGlyphCachingMode(char * /*str*/);
|
---|
148 |
|
---|
149 | extern void InitGlyphCaching(void);
|
---|
150 |
|
---|
151 | extern void SetGlyphCachingMode(int /*newmode*/);
|
---|
152 |
|
---|
153 | #endif /* DIXFONT_H */
|
---|