fontutil.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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. // Copyright: (c) wxWidgets team
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_UNIX_FONTUTIL_H_
  11. #define _WX_UNIX_FONTUTIL_H_
  12. #ifdef __X__
  13. typedef WXFontStructPtr wxNativeFont;
  14. #elif defined(__WXGTK__)
  15. typedef GdkFont *wxNativeFont;
  16. #else
  17. #error "Unsupported toolkit"
  18. #endif
  19. // returns the handle of the nearest available font or 0
  20. extern wxNativeFont
  21. wxLoadQueryNearestFont(int pointSize,
  22. int family,
  23. int style,
  24. int weight,
  25. bool underlined,
  26. const wxString &facename,
  27. wxFontEncoding encoding,
  28. wxString* xFontName = NULL);
  29. // returns the font specified by the given XLFD
  30. extern wxNativeFont wxLoadFont(const wxString& fontSpec);
  31. #endif // _WX_UNIX_FONTUTIL_H_