]> git.saurik.com Git - wxWidgets.git/blame - include/wx/unix/fontutil.h
moved wxUSE_CRASHREPORT checks to wx/msw/chkconf.h; added it to setup.h.in so that...
[wxWidgets.git] / include / wx / unix / fontutil.h
CommitLineData
7beba2fc
VZ
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$
77ffb593 8// Copyright: (c) wxWidgets team
65571936 9// Licence: wxWindows licence
7beba2fc
VZ
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_UNIX_FONTUTIL_H_
13#define _WX_UNIX_FONTUTIL_H_
14
15#ifdef __X__
0d083705 16 typedef WXFontStructPtr wxNativeFont;
7beba2fc
VZ
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
30764ab5
VZ
24extern wxNativeFont
25wxLoadQueryNearestFont(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);
7beba2fc 33
409d5a58 34// returns the font specified by the given XLFD
3fe34ed0 35extern wxNativeFont wxLoadFont(const wxString& fontSpec);
409d5a58 36
7beba2fc 37#endif // _WX_UNIX_FONTUTIL_H_