X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7beba2fc73283f5b750227459da57e66bcd475f5..84c5b38d579e140df28cfbb649587e8862148c89:/src/unix/fontenum.cpp?ds=sidebyside diff --git a/src/unix/fontenum.cpp b/src/unix/fontenum.cpp index e8a9c18f75..5cd8a26981 100644 --- a/src/unix/fontenum.cpp +++ b/src/unix/fontenum.cpp @@ -26,10 +26,18 @@ #include "wx/string.h" #include "wx/utils.h" +#include "wx/fontmap.h" #include "wx/fontenum.h" #include "wx/fontutil.h" +#ifdef __VMS__ // Xlib.h for VMS is not (yet) compatible with C++ + // The resulting warnings are switched off here +#pragma message disable nosimpint +#endif #include +#ifdef __VMS__ +#pragma message enable nosimpint +#endif // ---------------------------------------------------------------------------- // private functions @@ -65,6 +73,14 @@ static char **CreateFontList(wxChar spacing, wxNativeEncodingInfo info; wxGetNativeFontEncoding(encoding, &info); +#if wxUSE_FONTMAP + if ( !wxTestFontEncoding(info) ) + { + // ask font mapper for a replacement + (void)wxTheFontMapper->GetAltForEncoding(encoding, &info); + } +#endif // wxUSE_FONTMAP + wxString pattern; pattern.Printf(wxT("-*-*-*-*-*-*-*-*-*-*-%c-*-%s-%s"), spacing,