+ wxFontMapperBase *fontmapper = wxFontMapperBase::Get();
+ wxASSERT_MSG( !fontmapper->IsDummy(),
+ 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 and it's better than
+ // crashing by returning NULL
+ return (wxFontMapper *)fontmapper;