]> git.saurik.com Git - wxWidgets.git/blame - src/common/fontutilcmn.cpp
adding ContentScaleFactor support to dc - defaulting to 1.0
[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
7// RCS-ID: $Id$
8// Copyright: (c) Vadim Zeitlin, Vaclav Slavik
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12// ============================================================================
13// declarations
14// ============================================================================
15
16// ----------------------------------------------------------------------------
17// headers
18// ----------------------------------------------------------------------------
19
20// For compilers that support precompilation, includes "wx.h".
21#include "wx/wxprec.h"
22
23#ifdef __BORLANDC__
24 #pragma hdrstop
25#endif
26
27#include "wx/fontutil.h"
28#include "wx/encinfo.h"
29
30// ============================================================================
31// implementation
32// ============================================================================
33
34#ifdef wxHAS_UTF8_FONTS
35
36// ----------------------------------------------------------------------------
37// wxNativeEncodingInfo
38// ----------------------------------------------------------------------------
39
40bool wxNativeEncodingInfo::FromString(const wxString& WXUNUSED(s))
41{
42 return false;
43}
44
45wxString wxNativeEncodingInfo::ToString() const
46{
47 return wxEmptyString;
48}
49
50bool wxTestFontEncoding(const wxNativeEncodingInfo& WXUNUSED(info))
51{
52 return true;
53}
54
55bool wxGetNativeFontEncoding(wxFontEncoding encoding,
56 wxNativeEncodingInfo *info)
57{
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;
62
63 return true;
64}
65
66#endif // wxHAS_UTF8_FONTS