]> git.saurik.com Git - wxWidgets.git/blame - src/common/fontutilcmn.cpp
Applied #15375 to stop event-sending in generic wxSpinCtrl ctor (eco)
[wxWidgets.git] / src / common / fontutilcmn.cpp
CommitLineData
c3a58b24
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/common/fontutilcmn.cpp
3// Purpose: Font helper functions common for all ports
4// Author: Vaclav Slavik
5// Modified by:
6// Created: 2006-12-20
c3a58b24
VS
7// Copyright: (c) Vadim Zeitlin, Vaclav Slavik
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11// ============================================================================
12// declarations
13// ============================================================================
14
15// ----------------------------------------------------------------------------
16// headers
17// ----------------------------------------------------------------------------
18
19// For compilers that support precompilation, includes "wx.h".
20#include "wx/wxprec.h"
21
22#ifdef __BORLANDC__
23 #pragma hdrstop
24#endif
25
26#include "wx/fontutil.h"
27#include "wx/encinfo.h"
28
29// ============================================================================
30// implementation
31// ============================================================================
32
33#ifdef wxHAS_UTF8_FONTS
34
35// ----------------------------------------------------------------------------
36// wxNativeEncodingInfo
37// ----------------------------------------------------------------------------
38
39bool wxNativeEncodingInfo::FromString(const wxString& WXUNUSED(s))
40{
41 return false;
42}
43
44wxString wxNativeEncodingInfo::ToString() const
45{
46 return wxEmptyString;
47}
48
49bool wxTestFontEncoding(const wxNativeEncodingInfo& WXUNUSED(info))
50{
51 return true;
52}
53
54bool wxGetNativeFontEncoding(wxFontEncoding encoding,
55 wxNativeEncodingInfo *info)
56{
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;
61
62 return true;
63}
64
65#endif // wxHAS_UTF8_FONTS