]>
git.saurik.com Git - wxWidgets.git/blob - src/common/fontutilcmn.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/fontutilcmn.cpp
3 // Purpose: Font helper functions common for all ports
4 // Author: Vaclav Slavik
8 // Copyright: (c) Vadim Zeitlin, Vaclav Slavik
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
27 #include "wx/fontutil.h"
28 #include "wx/encinfo.h"
30 // ============================================================================
32 // ============================================================================
34 #ifdef wxHAS_UTF8_FONTS
36 // ----------------------------------------------------------------------------
37 // wxNativeEncodingInfo
38 // ----------------------------------------------------------------------------
40 bool wxNativeEncodingInfo::FromString(const wxString
& WXUNUSED(s
))
45 wxString
wxNativeEncodingInfo::ToString() const
50 bool wxTestFontEncoding(const wxNativeEncodingInfo
& WXUNUSED(info
))
55 bool wxGetNativeFontEncoding(wxFontEncoding encoding
,
56 wxNativeEncodingInfo
*info
)
58 // all encodings are available because we translate text in any encoding to
59 // UTF-8 internally anyhow
60 info
->facename
.clear();
61 info
->encoding
= encoding
;
66 #endif // wxHAS_UTF8_FONTS