1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/unix/fontutil.h
3 // Purpose: font-related helper functions for Unix/X11
4 // Author: Vadim Zeitlin
7 // Copyright: (c) wxWidgets team
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_UNIX_FONTUTIL_H_
12 #define _WX_UNIX_FONTUTIL_H_
15 typedef WXFontStructPtr wxNativeFont
;
16 #elif defined(__WXGTK__)
17 typedef GdkFont
*wxNativeFont
;
19 #error "Unsupported toolkit"
22 // returns the handle of the nearest available font or 0
24 wxLoadQueryNearestFont(int pointSize
,
29 const wxString
&facename
,
30 wxFontEncoding encoding
,
31 wxString
* xFontName
= NULL
);
33 // returns the font specified by the given XLFD
34 extern wxNativeFont
wxLoadFont(const wxString
& fontSpec
);
36 #endif // _WX_UNIX_FONTUTIL_H_