040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/***********************************************************
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncCopyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync All Rights Reserved
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncPermission to use, copy, modify, and distribute this software and its
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncdocumentation for any purpose and without fee is hereby granted,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncprovided that the above copyright notice appear in all copies and that
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncboth that copyright notice and this permission notice appear in
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncsupporting documentation, and that the name of Digital not be
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncused in advertising or publicity pertaining to distribution of the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncsoftware without specific, written prior permission.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync******************************************************************/
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define FONTMAXBOUNDS(font,field) (font)->info.maxbounds.field
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define FONTMINBOUNDS(font,field) (font)->info.minbounds.field
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define TERMINALFONT(font) (font)->info.terminalFont
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define FONTCONSTMETRICS(font) (font)->info.constantMetrics
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define FONTCONSTWIDTH(font) (font)->info.constantWidth
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define FONTINKMIN(font) (&((font)->info.ink_minbounds))
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define FONTINKMAX(font) (&((font)->info.ink_maxbounds))
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define FONTGLYPHBITS(base,pci) ((unsigned char *) (pci)->bits)
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/* some things haven't changed names, but we'll be careful anyway */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * for linear char sets
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define N1dChars(pfont) (FONTLASTCOL(pfont) - FONTFIRSTCOL(pfont) + 1)
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * for 2D char sets
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define GLYPHWIDTHBYTESPADDED(pci) (GLYPHWIDTHBYTES(pci))
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci)+1) & ~0x1)
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define PADGLYPHWIDTHBYTES(w) (((((w)+7)>>3)+1) & ~0x1)
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci)+3) & ~0x3)
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define PADGLYPHWIDTHBYTES(w) (((((w)+7)>>3)+3) & ~0x3)
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci)+7) & ~0x7)
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define PADGLYPHWIDTHBYTES(w) (((((w)+7)>>3)+7) & ~0x7)
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#endif /* DIXFONTSTRUCT_H */