105b261ecSmrg/*
205b261ecSmrg
305b261ecSmrgCopyright 1993 by Davor Matic
405b261ecSmrg
505b261ecSmrgPermission to use, copy, modify, distribute, and sell this software
605b261ecSmrgand its documentation for any purpose is hereby granted without fee,
705b261ecSmrgprovided that the above copyright notice appear in all copies and that
805b261ecSmrgboth that copyright notice and this permission notice appear in
905b261ecSmrgsupporting documentation.  Davor Matic makes no representations about
1005b261ecSmrgthe suitability of this software for any purpose.  It is provided "as
1105b261ecSmrgis" without express or implied warranty.
1205b261ecSmrg
1305b261ecSmrg*/
1405b261ecSmrg
1505b261ecSmrg#ifndef XNESTFONT_H
1605b261ecSmrg#define XNESTFONT_H
1705b261ecSmrg
1805b261ecSmrgtypedef struct {
1935c4bbdfSmrg    XFontStruct *font_struct;
2005b261ecSmrg} xnestPrivFont;
2105b261ecSmrg
2205b261ecSmrgextern int xnestFontPrivateIndex;
2305b261ecSmrg
2405b261ecSmrg#define xnestFontPriv(pFont) \
2505b261ecSmrg  ((xnestPrivFont *)FontGetPrivate(pFont, xnestFontPrivateIndex))
2605b261ecSmrg
2705b261ecSmrg#define xnestFontStruct(pFont) (xnestFontPriv(pFont)->font_struct)
2805b261ecSmrg
2905b261ecSmrg#define xnestFont(pFont) (xnestFontStruct(pFont)->fid)
3005b261ecSmrg
3105b261ecSmrgBool xnestRealizeFont(ScreenPtr pScreen, FontPtr pFont);
3205b261ecSmrgBool xnestUnrealizeFont(ScreenPtr pScreen, FontPtr pFont);
3305b261ecSmrg
3435c4bbdfSmrg#endif                          /* XNESTFONT_H */
35