|
|
1.1 ! root 1: /* $Header: dixfontstr.h,v 1.1 87/09/11 07:50:43 toddb Exp $ */ ! 2: /*********************************************************** ! 3: Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts, ! 4: and the Massachusetts Institute of Technology, Cambridge, Massachusetts. ! 5: ! 6: All Rights Reserved ! 7: ! 8: Permission to use, copy, modify, and distribute this software and its ! 9: documentation for any purpose and without fee is hereby granted, ! 10: provided that the above copyright notice appear in all copies and that ! 11: both that copyright notice and this permission notice appear in ! 12: supporting documentation, and that the names of Digital or MIT not be ! 13: used in advertising or publicity pertaining to distribution of the ! 14: software without specific, written prior permission. ! 15: ! 16: DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ! 17: ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL ! 18: DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ! 19: ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, ! 20: WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ! 21: ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS ! 22: SOFTWARE. ! 23: ! 24: ******************************************************************/ ! 25: ! 26: #ifndef DIXFONTSTRUCT_H ! 27: #define DIXFONTSTRUCT_H ! 28: ! 29: #include "dixfont.h" ! 30: #include "font.h" ! 31: #include "misc.h" ! 32: ! 33: typedef struct _DIXFontProp { ! 34: ATOM name; ! 35: INT32 value; /* assumes ATOM is not larger than INT32 */ ! 36: } DIXFontProp; ! 37: ! 38: /* ! 39: * FONT is created at font load time; it is not part of the ! 40: * font file format ! 41: */ ! 42: typedef struct _Font { ! 43: FontInfoPtr pFI; ! 44: DIXFontProp *pFP; ! 45: CharInfoPtr pCI; ! 46: char *pGlyphs; ! 47: int lenpname; ! 48: char *pathname; /* pathname of file from which font was read */ ! 49: struct _Font *next; /* linked list of opened fonts */ ! 50: int refcnt; /* free storage when this goes to 0 */ ! 51: pointer devPriv[MAXSCREENS]; /* information private to screen */ ! 52: } FontRec; ! 53: ! 54: ! 55: /* ! 56: * all the following are in fonts.c ! 57: */ ! 58: extern FontPtr OpenFont(); ! 59: extern Bool SetDefaultFont(); ! 60: extern void CloseFont(); ! 61: extern FontPtr ReadNFont(); ! 62: extern Bool DescribeFont(); ! 63: extern void ServerBitmapFromGlyph(); ! 64: extern Bool CursorMetricsFromGlyph(); ! 65: extern void GetGlyphs(); ! 66: extern void QueryTextExtents(); ! 67: ! 68: #endif /* DIXFONTSTRUCT_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.