]> git.saurik.com Git - wxWidgets.git/blob - include/wx/unix/fontutil.h
using Run of base class
[wxWidgets.git] / include / wx / unix / fontutil.h
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
11 #ifndef _WX_UNIX_FONTUTIL_H_
12 #define _WX_UNIX_FONTUTIL_H_
13
14 #ifdef __X__
15 typedef WXFontStructPtr wxNativeFont;
16 #elif defined(__WXGTK__)
17 typedef GdkFont *wxNativeFont;
18 #else
19 #error "Unsupported toolkit"
20 #endif
21
22 // returns the handle of the nearest available font or 0
23 extern wxNativeFont
24 wxLoadQueryNearestFont(int pointSize,
25 int family,
26 int style,
27 int weight,
28 bool underlined,
29 const wxString &facename,
30 wxFontEncoding encoding,
31 wxString* xFontName = NULL);
32
33 // returns the font specified by the given XLFD
34 extern wxNativeFont wxLoadFont(const wxString& fontSpec);
35
36 #endif // _WX_UNIX_FONTUTIL_H_