home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2240.zip / wxWindows-2.4.0 / include / wx / unix / fontutil.h < prev    next >
C/C++ Source or Header  |  2002-01-19  |  1KB  |  38 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name:        wx/unix/fontutil.h
  3. // Purpose:     font-related helper functions for Unix/X11
  4. // Author:      Vadim Zeitlin
  5. // Modified by:
  6. // Created:     05.11.99
  7. // RCS-ID:      $Id: fontutil.h,v 1.6 2002/01/19 15:10:29 GD Exp $
  8. // Copyright:   (c) wxWindows team
  9. // Licence:     wxWindows license
  10. /////////////////////////////////////////////////////////////////////////////
  11.  
  12. #ifndef _WX_UNIX_FONTUTIL_H_
  13. #define _WX_UNIX_FONTUTIL_H_
  14.  
  15. #ifdef __X__
  16.     typedef WXFontStructPtr wxNativeFont;
  17. #elif defined(__WXGTK__)
  18.     typedef GdkFont *wxNativeFont;
  19. #else
  20.     #error "Unsupported toolkit"
  21. #endif
  22.  
  23. // returns the handle of the nearest available font or 0
  24. extern wxNativeFont
  25. wxLoadQueryNearestFont(int pointSize,
  26.                        int family,
  27.                        int style,
  28.                        int weight,
  29.                        bool underlined,
  30.                        const wxString &facename,
  31.                        wxFontEncoding encoding,
  32.                        wxString* xFontName = (wxString *)NULL);
  33.  
  34. // returns the font specified by the given XLFD
  35. extern wxNativeFont wxLoadFont(const wxString& fontSpec);
  36.  
  37. #endif // _WX_UNIX_FONTUTIL_H_
  38.