X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7beba2fc73283f5b750227459da57e66bcd475f5..dc1efb1d9f4e4ce7d8f889dad3aaab7026b73058:/include/wx/fontmap.h?ds=sidebyside diff --git a/include/wx/fontmap.h b/include/wx/fontmap.h index 0b86555b00..ba5403b81d 100644 --- a/include/wx/fontmap.h +++ b/include/wx/fontmap.h @@ -24,6 +24,7 @@ #include "wx/fontutil.h" // for wxNativeEncodingInfo class WXDLLEXPORT wxConfigBase; +class WXDLLEXPORT wxWindow; // ---------------------------------------------------------------------------- // wxFontMapper manages user-definable correspondence between logical font @@ -54,8 +55,21 @@ public: // return FALSE virtual bool GetAltForEncoding(wxFontEncoding encoding, wxNativeEncodingInfo *info, + const wxString& facename = wxEmptyString, bool interactive = TRUE); + // version better suitable for 'public' use. Returns wxFontEcoding + // that can be used it wxFont ctor + bool GetAltForEncoding(wxFontEncoding encoding, + wxFontEncoding *alt_encoding, + const wxString& facename = wxEmptyString, + bool interactive = TRUE); + + // checks whether given encoding is available in given face or not. + // If no facename is given, + virtual bool IsEncodingAvailable(wxFontEncoding encoding, + const wxString& facename = wxEmptyString); + // returns the encoding for the given charset (in the form of RFC 2046) or // wxFONTENCODING_SYSTEM if couldn't decode it virtual wxFontEncoding CharsetToEncoding(const wxString& charset,