X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a6c91f7da9cd1edc4884f915632a74c1078477b3..172541f64be8fcddb08f1c121da256d08c24a70b:/src/common/fontmap.cpp diff --git a/src/common/fontmap.cpp b/src/common/fontmap.cpp index be6bf5703f..be05e44b85 100644 --- a/src/common/fontmap.cpp +++ b/src/common/fontmap.cpp @@ -163,6 +163,19 @@ wxFontMapper::~wxFontMapper() { } +bool wxFontMapper::IsWxFontMapper() +{ return true; } + +/* static */ +wxFontMapper *wxFontMapper::Get() +{ + wxFontMapperBase *fontmapper = wxFontMapperBase::Get(); + wxASSERT_MSG(fontmapper->IsWxFontMapper(), wxT("GUI code requested a wxFontMapper but we only have a wxFontMapperBase.")); + // Now return it anyway because there's a chance the GUI code might just + // only want to call wxFontMapperBase functions. + return (wxFontMapper*)fontmapper; +} + wxFontEncoding wxFontMapper::CharsetToEncoding(const wxString& charset, bool interactive) {