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 | #include <X11/fonts/fontproto.h>
|
---|
32 | #include <X11/fonts/fontutil.h>
|
---|
33 |
|
---|
34 | #define NullDIXFontProp ((DIXFontPropPtr)0)
|
---|
35 |
|
---|
36 | typedef struct _DIXFontProp *DIXFontPropPtr;
|
---|
37 |
|
---|
38 | extern _X_EXPORT Bool SetDefaultFont(const char * /*defaultfontname */ );
|
---|
39 |
|
---|
40 | extern _X_EXPORT int OpenFont(ClientPtr /*client */ ,
|
---|
41 | XID /*fid */ ,
|
---|
42 | Mask /*flags */ ,
|
---|
43 | unsigned /*lenfname */ ,
|
---|
44 | const char * /*pfontname */ );
|
---|
45 |
|
---|
46 | extern _X_EXPORT int CloseFont(void *pfont,
|
---|
47 | XID fid);
|
---|
48 |
|
---|
49 | typedef struct _xQueryFontReply *xQueryFontReplyPtr;
|
---|
50 |
|
---|
51 | extern _X_EXPORT void QueryFont(FontPtr /*pFont */ ,
|
---|
52 | xQueryFontReplyPtr /*pReply */ ,
|
---|
53 | int /*nProtoCCIStructs */ );
|
---|
54 |
|
---|
55 | extern _X_EXPORT int ListFonts(ClientPtr /*client */ ,
|
---|
56 | unsigned char * /*pattern */ ,
|
---|
57 | unsigned int /*length */ ,
|
---|
58 | unsigned int /*max_names */ );
|
---|
59 |
|
---|
60 | extern _X_EXPORT int PolyText(ClientPtr /*client */ ,
|
---|
61 | DrawablePtr /*pDraw */ ,
|
---|
62 | GCPtr /*pGC */ ,
|
---|
63 | unsigned char * /*pElt */ ,
|
---|
64 | unsigned char * /*endReq */ ,
|
---|
65 | int /*xorg */ ,
|
---|
66 | int /*yorg */ ,
|
---|
67 | int /*reqType */ ,
|
---|
68 | XID /*did */ );
|
---|
69 |
|
---|
70 | extern _X_EXPORT int ImageText(ClientPtr /*client */ ,
|
---|
71 | DrawablePtr /*pDraw */ ,
|
---|
72 | GCPtr /*pGC */ ,
|
---|
73 | int /*nChars */ ,
|
---|
74 | unsigned char * /*data */ ,
|
---|
75 | int /*xorg */ ,
|
---|
76 | int /*yorg */ ,
|
---|
77 | int /*reqType */ ,
|
---|
78 | XID /*did */ );
|
---|
79 |
|
---|
80 | extern _X_EXPORT int SetFontPath(ClientPtr /*client */ ,
|
---|
81 | int /*npaths */ ,
|
---|
82 | unsigned char * /*paths */ );
|
---|
83 |
|
---|
84 | extern _X_EXPORT int SetDefaultFontPath(const char * /*path */ );
|
---|
85 |
|
---|
86 | extern _X_EXPORT int GetFontPath(ClientPtr client,
|
---|
87 | int *count,
|
---|
88 | int *length, unsigned char **result);
|
---|
89 |
|
---|
90 | extern _X_EXPORT void DeleteClientFontStuff(ClientPtr /*client */ );
|
---|
91 |
|
---|
92 | /* Quartz support on Mac OS X pulls in the QuickDraw
|
---|
93 | framework whose InitFonts function conflicts here. */
|
---|
94 | #ifdef __APPLE__
|
---|
95 | #define InitFonts Darwin_X_InitFonts
|
---|
96 | #endif
|
---|
97 | extern _X_EXPORT void InitFonts(void);
|
---|
98 |
|
---|
99 | extern _X_EXPORT void FreeFonts(void);
|
---|
100 |
|
---|
101 | extern _X_EXPORT FontPtr find_old_font(XID /*id */ );
|
---|
102 |
|
---|
103 | #define GetGlyphs dixGetGlyphs
|
---|
104 | extern _X_EXPORT void dixGetGlyphs(FontPtr /*font */ ,
|
---|
105 | unsigned long /*count */ ,
|
---|
106 | unsigned char * /*chars */ ,
|
---|
107 | FontEncoding /*fontEncoding */ ,
|
---|
108 | unsigned long * /*glyphcount */ ,
|
---|
109 | CharInfoPtr * /*glyphs */ );
|
---|
110 |
|
---|
111 | extern _X_EXPORT void register_fpe_functions(void);
|
---|
112 |
|
---|
113 | #endif /* DIXFONT_H */
|
---|