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