]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/fontenum.cpp
More lib and demo patches to drop the wx prefix (Jeff has been busy!)
[wxWidgets.git] / src / os2 / fontenum.cpp
index b74beb093930ada3a1e5316b52f3fda0183c62c5..d85e98f18e0ebca2bf72ec50081704061077a932 100644 (file)
 // 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