xserver

xserver with xephyr scale patch
git clone https://git.neptards.moe/u3shit/xserver.git
Log | Files | Refs | README | LICENSE

XNFont.h (1023B)


      1 /*
      2 
      3 Copyright 1993 by Davor Matic
      4 
      5 Permission to use, copy, modify, distribute, and sell this software
      6 and its documentation for any purpose is hereby granted without fee,
      7 provided that the above copyright notice appear in all copies and that
      8 both that copyright notice and this permission notice appear in
      9 supporting documentation.  Davor Matic makes no representations about
     10 the suitability of this software for any purpose.  It is provided "as
     11 is" without express or implied warranty.
     12 
     13 */
     14 
     15 #ifndef XNESTFONT_H
     16 #define XNESTFONT_H
     17 
     18 typedef struct {
     19     XFontStruct *font_struct;
     20 } xnestPrivFont;
     21 
     22 extern int xnestFontPrivateIndex;
     23 
     24 #define xnestFontPriv(pFont) \
     25   ((xnestPrivFont *)FontGetPrivate(pFont, xnestFontPrivateIndex))
     26 
     27 #define xnestFontStruct(pFont) (xnestFontPriv(pFont)->font_struct)
     28 
     29 #define xnestFont(pFont) (xnestFontStruct(pFont)->fid)
     30 
     31 Bool xnestRealizeFont(ScreenPtr pScreen, FontPtr pFont);
     32 Bool xnestUnrealizeFont(ScreenPtr pScreen, FontPtr pFont);
     33 
     34 #endif                          /* XNESTFONT_H */