/*********************************************************** Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts, and the Massachusetts Institute of Technology, Cambridge, Massachusetts. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the names of Digital or MIT not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ******************************************************************/ #ifndef DIXFONTSTRUCT_H #define DIXFONTSTRUCT_H #include "dixfont.h" #include "font.h" #include "misc.h" typedef struct _DIXFontProp { ATOM name; INT32 value; /* assumes ATOM is not larger than INT32 */ } DIXFontProp; /* * FONT is created at font load time; it is not part of the * font file format */ typedef struct _Font { FontInfoPtr pFI; DIXFontProp *pFP; CharInfoPtr pCI; char *pGlyphs; int lenpname; char *pathname; /* pathname of file from which font was read */ struct _Font *next; /* linked list of opened fonts */ int refcnt; /* free storage when this goes to 0 */ pointer devPriv[MAXSCREENS]; /* information private to screen */ } FontRec; /* * this struct is passed to DescribeFontList to get info and props * for a list of fonts. */ typedef struct _FontData { int nfonts; FontInfoPtr pFI; /* array of fi's allocated by caller */ DIXFontProp **pFP; /* array of pointers allocated by caller; * property arrays allocated by DescribeFontList */ } FontDataRec; /* * all the following are in fonts.c */ extern FontPtr OpenFont(); extern Bool SetDefaultFont(); extern int CloseFont(); extern FontPtr ReadNFont(); extern void DescribeFontList(); extern void ServerBitmapFromGlyph(); extern Bool CursorMetricsFromGlyph(); extern void GetGlyphs(); extern void QueryTextExtents(); #endif /* DIXFONTSTRUCT_H */