X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/545f9e3c7cf92cb9e409032b5a960795e5b6a974..d289329218fb13e56c297fc27d82cb44cb849083:/src/os2/fontenum.cpp diff --git a/src/os2/fontenum.cpp b/src/os2/fontenum.cpp index 00454cee9b..d85e98f18e 100644 --- a/src/os2/fontenum.cpp +++ b/src/os2/fontenum.cpp @@ -24,12 +24,15 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" +#if wxUSE_FONTMAP + #ifndef WX_PRECOMP #include "wx/font.h" #endif #include "wx/fontenum.h" #include "wx/fontmap.h" +#include "wx/encinfo.h" #include "wx/os2/private.h" @@ -97,7 +100,7 @@ bool wxFontEnumeratorHelper::SetEncoding(wxFontEncoding encoding) wxNativeEncodingInfo info; if ( !wxGetNativeFontEncoding(encoding, &info) ) { - if ( !wxTheFontMapper->GetAltForEncoding(encoding, &info) ) + if ( !wxFontMapper::Get()->GetAltForEncoding(encoding, &info) ) { // no such encodings at all return FALSE; @@ -216,3 +219,4 @@ int CALLBACK wxFontEnumeratorProc(LPLOGFONT lplf, LPTEXTMETRIC lptm, } */ +#endif // wxUSE_FONTMAP