X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d8cde57b8367b4e853fbe45d88ee23cea4a301e9..7fa4dc1cfcc55b0fe425a3ebe5e992ff8255481b:/src/os2/fontenum.cpp diff --git a/src/os2/fontenum.cpp b/src/os2/fontenum.cpp index b74beb0939..d85e98f18e 100644 --- a/src/os2/fontenum.cpp +++ b/src/os2/fontenum.cpp @@ -17,15 +17,22 @@ // headers // ---------------------------------------------------------------------------- +#ifdef __GNUG__ + #pragma implementation "fontenum.h" +#endif + // 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" @@ -93,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; @@ -212,3 +219,4 @@ int CALLBACK wxFontEnumeratorProc(LPLOGFONT lplf, LPTEXTMETRIC lptm, } */ +#endif // wxUSE_FONTMAP