]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/fontutil.cpp
compilation fixes - wxGTK compiles but not links
[wxWidgets.git] / src / msw / fontutil.cpp
index 065b899c615336f68194bdcbc3ac0f437eba723d..003dd85a7ecea8dbda8691e4a1714727b16b48a2 100644 (file)
@@ -369,7 +369,9 @@ void wxFillLogFont(LOGFONT *logFont, const wxFont *font)
     wxFontEncoding encoding = font->GetEncoding();
     if ( !wxGetNativeFontEncoding(encoding, &info) )
     {
+#if wxUSE_FONTMAP
         if ( !wxTheFontMapper->GetAltForEncoding(encoding, &info) )
+#endif // wxUSE_FONTMAP
         {
             // unsupported encoding, replace with the default
             info.charset = ANSI_CHARSET;