]>
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
7 // Copyright: (c) Vadim Zeitlin, Vaclav Slavik
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // ============================================================================
13 // ============================================================================
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 // For compilers that support precompilation, includes "wx.h".
20 #include "wx/wxprec.h"
26 #include "wx/fontutil.h"
27 #include "wx/encinfo.h"
29 // ============================================================================
31 // ============================================================================
33 #ifdef wxHAS_UTF8_FONTS
35 // ----------------------------------------------------------------------------
36 // wxNativeEncodingInfo
37 // ----------------------------------------------------------------------------
39 bool wxNativeEncodingInfo::FromString(const wxString
& WXUNUSED(s
))
44 wxString
wxNativeEncodingInfo::ToString() const
49 bool wxTestFontEncoding(const wxNativeEncodingInfo
& WXUNUSED(info
))
54 bool wxGetNativeFontEncoding(wxFontEncoding encoding
,
55 wxNativeEncodingInfo
*info
)
57 // all encodings are available because we translate text in any encoding to
58 // UTF-8 internally anyhow
59 info
->facename
.clear();
60 info
->encoding
= encoding
;
65 #endif // wxHAS_UTF8_FONTS