1 | /* $Xorg: dixfont.h,v 1.3 2000/08/17 19:53:29 cpqbld Exp $ */
|
---|
2 | /***********************************************************
|
---|
3 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
|
---|
4 |
|
---|
5 | All Rights Reserved
|
---|
6 |
|
---|
7 | Permission to use, copy, modify, and distribute this software and its
|
---|
8 | documentation for any purpose and without fee is hereby granted,
|
---|
9 | provided that the above copyright notice appear in all copies and that
|
---|
10 | both that copyright notice and this permission notice appear in
|
---|
11 | supporting documentation, and that the name of Digital not be
|
---|
12 | used in advertising or publicity pertaining to distribution of the
|
---|
13 | software without specific, written prior permission.
|
---|
14 |
|
---|
15 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
---|
16 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
|
---|
17 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
|
---|
18 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
---|
19 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
---|
20 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
---|
21 | SOFTWARE.
|
---|
22 |
|
---|
23 | ******************************************************************/
|
---|
24 | /* $XFree86: xc/programs/Xserver/include/dixfont.h,v 3.7 2001/02/02 21:39:02 herrb Exp $ */
|
---|
25 |
|
---|
26 | #ifndef DIXFONT_H
|
---|
27 | #define DIXFONT_H 1
|
---|
28 |
|
---|
29 | #include "dix.h"
|
---|
30 | #include <X11/fonts/font.h>
|
---|
31 | #include "closure.h"
|
---|
32 | #include <X11/fonts/fontstruct.h>
|
---|
33 |
|
---|
34 | #define NullDIXFontProp ((DIXFontPropPtr)0)
|
---|
35 |
|
---|
36 | typedef struct _DIXFontProp *DIXFontPropPtr;
|
---|
37 |
|
---|
38 | extern FPEFunctions *fpe_functions;
|
---|
39 |
|
---|
40 | extern int FontToXError(int /*err*/);
|
---|
41 |
|
---|
42 | extern Bool SetDefaultFont(char * /*defaultfontname*/);
|
---|
43 |
|
---|
44 | extern void QueueFontWakeup(FontPathElementPtr /*fpe*/);
|
---|
45 |
|
---|
46 | extern void RemoveFontWakeup(FontPathElementPtr /*fpe*/);
|
---|
47 |
|
---|
48 | extern void FontWakeup(pointer /*data*/,
|
---|
49 | int /*count*/,
|
---|
50 | pointer /*LastSelectMask*/);
|
---|
51 |
|
---|
52 | extern int OpenFont(ClientPtr /*client*/,
|
---|
53 | XID /*fid*/,
|
---|
54 | Mask /*flags*/,
|
---|
55 | unsigned /*lenfname*/,
|
---|
56 | char * /*pfontname*/);
|
---|
57 |
|
---|
58 | extern int CloseFont(pointer /*pfont*/,
|
---|
59 | XID /*fid*/);
|
---|
60 |
|
---|
61 | typedef struct _xQueryFontReply *xQueryFontReplyPtr;
|
---|
62 |
|
---|
63 | extern void QueryFont(FontPtr /*pFont*/,
|
---|
64 | xQueryFontReplyPtr /*pReply*/,
|
---|
65 | int /*nProtoCCIStructs*/);
|
---|
66 |
|
---|
67 | extern int ListFonts(ClientPtr /*client*/,
|
---|
68 | unsigned char * /*pattern*/,
|
---|
69 | unsigned int /*length*/,
|
---|
70 | unsigned int /*max_names*/);
|
---|
71 |
|
---|
72 | int
|
---|
73 | doListFontsWithInfo(ClientPtr /*client*/,
|
---|
74 | LFWIclosurePtr /*c*/);
|
---|
75 |
|
---|
76 | extern int doPolyText(ClientPtr /*client*/,
|
---|
77 | PTclosurePtr /*c*/
|
---|
78 | );
|
---|
79 |
|
---|
80 | extern int PolyText(ClientPtr /*client*/,
|
---|
81 | DrawablePtr /*pDraw*/,
|
---|
82 | GCPtr /*pGC*/,
|
---|
83 | unsigned char * /*pElt*/,
|
---|
84 | unsigned char * /*endReq*/,
|
---|
85 | int /*xorg*/,
|
---|
86 | int /*yorg*/,
|
---|
87 | int /*reqType*/,
|
---|
88 | XID /*did*/);
|
---|
89 |
|
---|
90 | extern int doImageText(ClientPtr /*client*/,
|
---|
91 | ITclosurePtr /*c*/);
|
---|
92 |
|
---|
93 | extern int ImageText(ClientPtr /*client*/,
|
---|
94 | DrawablePtr /*pDraw*/,
|
---|
95 | GCPtr /*pGC*/,
|
---|
96 | int /*nChars*/,
|
---|
97 | unsigned char * /*data*/,
|
---|
98 | int /*xorg*/,
|
---|
99 | int /*yorg*/,
|
---|
100 | int /*reqType*/,
|
---|
101 | XID /*did*/);
|
---|
102 |
|
---|
103 | extern int SetFontPath(ClientPtr /*client*/,
|
---|
104 | int /*npaths*/,
|
---|
105 | unsigned char * /*paths*/,
|
---|
106 | int * /*error*/);
|
---|
107 |
|
---|
108 | extern int SetDefaultFontPath(char * /*path*/);
|
---|
109 |
|
---|
110 | extern unsigned char *GetFontPath(int * /*count*/,
|
---|
111 | int * /*length*/);
|
---|
112 |
|
---|
113 | extern int LoadGlyphs(ClientPtr /*client*/,
|
---|
114 | FontPtr /*pfont*/,
|
---|
115 | unsigned /*nchars*/,
|
---|
116 | int /*item_size*/,
|
---|
117 | unsigned char * /*data*/);
|
---|
118 |
|
---|
119 | extern void DeleteClientFontStuff(ClientPtr /*client*/);
|
---|
120 |
|
---|
121 | /* Quartz support on Mac OS X pulls in the QuickDraw
|
---|
122 | framework whose InitFonts function conflicts here. */
|
---|
123 | #ifdef __DARWIN__
|
---|
124 | #define InitFonts Darwin_X_InitFonts
|
---|
125 | #endif
|
---|
126 | extern void InitFonts(void);
|
---|
127 |
|
---|
128 | extern void FreeFonts(void);
|
---|
129 |
|
---|
130 | extern FontPtr find_old_font(XID /*id*/);
|
---|
131 |
|
---|
132 | extern void GetGlyphs(FontPtr /*font*/,
|
---|
133 | unsigned long /*count*/,
|
---|
134 | unsigned char * /*chars*/,
|
---|
135 | FontEncoding /*fontEncoding*/,
|
---|
136 | unsigned long * /*glyphcount*/,
|
---|
137 | CharInfoPtr * /*glyphs*/);
|
---|
138 |
|
---|
139 | extern void QueryGlyphExtents(FontPtr /*pFont*/,
|
---|
140 | CharInfoPtr * /*charinfo*/,
|
---|
141 | unsigned long /*count*/,
|
---|
142 | ExtentInfoPtr /*info*/);
|
---|
143 |
|
---|
144 | extern Bool QueryTextExtents(FontPtr /*pFont*/,
|
---|
145 | unsigned long /*count*/,
|
---|
146 | unsigned char * /*chars*/,
|
---|
147 | ExtentInfoPtr /*info*/);
|
---|
148 |
|
---|
149 | extern Bool ParseGlyphCachingMode(char * /*str*/);
|
---|
150 |
|
---|
151 | extern void InitGlyphCaching(void);
|
---|
152 |
|
---|
153 | extern void SetGlyphCachingMode(int /*newmode*/);
|
---|
154 |
|
---|
155 | #endif /* DIXFONT_H */
|
---|