]> git.saurik.com Git - wxWidgets.git/blame - include/wx/unix/fontutil.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[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
77ffb593 7// Copyright: (c) wxWidgets team
65571936 8// Licence: wxWindows licence
7beba2fc
VZ
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_UNIX_FONTUTIL_H_
12#define _WX_UNIX_FONTUTIL_H_
13
14#ifdef __X__
0d083705 15 typedef WXFontStructPtr wxNativeFont;
7beba2fc
VZ
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
30764ab5
VZ
23extern wxNativeFont
24wxLoadQueryNearestFont(int pointSize,
25 int family,
26 int style,
27 int weight,
28 bool underlined,
29 const wxString &facename,
30 wxFontEncoding encoding,
d3b9f782 31 wxString* xFontName = NULL);
7beba2fc 32
409d5a58 33// returns the font specified by the given XLFD
3fe34ed0 34extern wxNativeFont wxLoadFont(const wxString& fontSpec);
409d5a58 35
7beba2fc 36#endif // _WX_UNIX_FONTUTIL_H_