1*4882a593Smuzhiyun /*********************************************************** 2*4882a593Smuzhiyun Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. 3*4882a593Smuzhiyun 4*4882a593Smuzhiyun All Rights Reserved 5*4882a593Smuzhiyun 6*4882a593Smuzhiyun Permission to use, copy, modify, and distribute this software and its 7*4882a593Smuzhiyun documentation for any purpose and without fee is hereby granted, 8*4882a593Smuzhiyun provided that the above copyright notice appear in all copies and that 9*4882a593Smuzhiyun both that copyright notice and this permission notice appear in 10*4882a593Smuzhiyun supporting documentation, and that the name of Digital not be 11*4882a593Smuzhiyun used in advertising or publicity pertaining to distribution of the 12*4882a593Smuzhiyun software without specific, written prior permission. 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 15*4882a593Smuzhiyun ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 16*4882a593Smuzhiyun DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 17*4882a593Smuzhiyun ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 18*4882a593Smuzhiyun WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 19*4882a593Smuzhiyun ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 20*4882a593Smuzhiyun SOFTWARE. 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun ******************************************************************/ 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun #ifndef DIXFONT_H 25*4882a593Smuzhiyun #define DIXFONT_H 1 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun #include "dix.h" 28*4882a593Smuzhiyun #include <X11/fonts/font.h> 29*4882a593Smuzhiyun #include "closure.h" 30*4882a593Smuzhiyun #include <X11/fonts/fontstruct.h> 31*4882a593Smuzhiyun #include <X11/fonts/fontproto.h> 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun #define NullDIXFontProp ((DIXFontPropPtr)0) 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun typedef struct _DIXFontProp *DIXFontPropPtr; 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun extern _X_EXPORT Bool SetDefaultFont(const char * /*defaultfontname */ ); 38*4882a593Smuzhiyun 39*4882a593Smuzhiyun extern _X_EXPORT int OpenFont(ClientPtr /*client */ , 40*4882a593Smuzhiyun XID /*fid */ , 41*4882a593Smuzhiyun Mask /*flags */ , 42*4882a593Smuzhiyun unsigned /*lenfname */ , 43*4882a593Smuzhiyun const char * /*pfontname */ ); 44*4882a593Smuzhiyun 45*4882a593Smuzhiyun extern _X_EXPORT int CloseFont(void *pfont, 46*4882a593Smuzhiyun XID fid); 47*4882a593Smuzhiyun 48*4882a593Smuzhiyun typedef struct _xQueryFontReply *xQueryFontReplyPtr; 49*4882a593Smuzhiyun 50*4882a593Smuzhiyun extern _X_EXPORT void QueryFont(FontPtr /*pFont */ , 51*4882a593Smuzhiyun xQueryFontReplyPtr /*pReply */ , 52*4882a593Smuzhiyun int /*nProtoCCIStructs */ ); 53*4882a593Smuzhiyun 54*4882a593Smuzhiyun extern _X_EXPORT int ListFonts(ClientPtr /*client */ , 55*4882a593Smuzhiyun unsigned char * /*pattern */ , 56*4882a593Smuzhiyun unsigned int /*length */ , 57*4882a593Smuzhiyun unsigned int /*max_names */ ); 58*4882a593Smuzhiyun 59*4882a593Smuzhiyun extern _X_EXPORT int PolyText(ClientPtr /*client */ , 60*4882a593Smuzhiyun DrawablePtr /*pDraw */ , 61*4882a593Smuzhiyun GCPtr /*pGC */ , 62*4882a593Smuzhiyun unsigned char * /*pElt */ , 63*4882a593Smuzhiyun unsigned char * /*endReq */ , 64*4882a593Smuzhiyun int /*xorg */ , 65*4882a593Smuzhiyun int /*yorg */ , 66*4882a593Smuzhiyun int /*reqType */ , 67*4882a593Smuzhiyun XID /*did */ ); 68*4882a593Smuzhiyun 69*4882a593Smuzhiyun extern _X_EXPORT int ImageText(ClientPtr /*client */ , 70*4882a593Smuzhiyun DrawablePtr /*pDraw */ , 71*4882a593Smuzhiyun GCPtr /*pGC */ , 72*4882a593Smuzhiyun int /*nChars */ , 73*4882a593Smuzhiyun unsigned char * /*data */ , 74*4882a593Smuzhiyun int /*xorg */ , 75*4882a593Smuzhiyun int /*yorg */ , 76*4882a593Smuzhiyun int /*reqType */ , 77*4882a593Smuzhiyun XID /*did */ ); 78*4882a593Smuzhiyun 79*4882a593Smuzhiyun extern _X_EXPORT int SetFontPath(ClientPtr /*client */ , 80*4882a593Smuzhiyun int /*npaths */ , 81*4882a593Smuzhiyun unsigned char * /*paths */ ); 82*4882a593Smuzhiyun 83*4882a593Smuzhiyun extern _X_EXPORT int SetDefaultFontPath(const char * /*path */ ); 84*4882a593Smuzhiyun 85*4882a593Smuzhiyun extern _X_EXPORT int GetFontPath(ClientPtr client, 86*4882a593Smuzhiyun int *count, 87*4882a593Smuzhiyun int *length, unsigned char **result); 88*4882a593Smuzhiyun 89*4882a593Smuzhiyun extern _X_EXPORT void DeleteClientFontStuff(ClientPtr /*client */ ); 90*4882a593Smuzhiyun 91*4882a593Smuzhiyun /* Quartz support on Mac OS X pulls in the QuickDraw 92*4882a593Smuzhiyun framework whose InitFonts function conflicts here. */ 93*4882a593Smuzhiyun #ifdef __APPLE__ 94*4882a593Smuzhiyun #define InitFonts Darwin_X_InitFonts 95*4882a593Smuzhiyun #endif 96*4882a593Smuzhiyun extern _X_EXPORT void InitFonts(void); 97*4882a593Smuzhiyun 98*4882a593Smuzhiyun extern _X_EXPORT void FreeFonts(void); 99*4882a593Smuzhiyun 100*4882a593Smuzhiyun extern _X_EXPORT void GetGlyphs(FontPtr /*font */ , 101*4882a593Smuzhiyun unsigned long /*count */ , 102*4882a593Smuzhiyun unsigned char * /*chars */ , 103*4882a593Smuzhiyun FontEncoding /*fontEncoding */ , 104*4882a593Smuzhiyun unsigned long * /*glyphcount */ , 105*4882a593Smuzhiyun CharInfoPtr * /*glyphs */ ); 106*4882a593Smuzhiyun 107*4882a593Smuzhiyun #endif /* DIXFONT_H */ 108