///////////////////////////////////////////////////////////////////////////////
-// Name: msw/fontenum.cpp
+// Name: src/os2/fontenum.cpp
// Purpose: wxFontEnumerator class for Windows
// Author: Julian Smart
// Modified by: David Webster to add support for font encodings
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#if wxUSE_FONTMAP
+
+#include "wx/fontenum.h"
+
#ifndef WX_PRECOMP
- #include "wx/font.h"
+ #include "wx/font.h"
#endif
-#include "wx/fontenum.h"
#include "wx/fontmap.h"
+#include "wx/encinfo.h"
#include "wx/os2/private.h"
// if not empty, enum only the fonts with this facename
wxString m_facename;
- // if TRUE, enum only fixed fonts
+ // if true, enum only fixed fonts
bool m_fixedOnly;
};
wxNativeEncodingInfo info;
if ( !wxGetNativeFontEncoding(encoding, &info) )
{
- if ( !wxTheFontMapper->GetAltForEncoding(encoding, &info) )
+ if ( !wxFontMapper::Get()->GetAltForEncoding(encoding, &info) )
{
// no such encodings at all
return FALSE;
m_charset = info.charset;
m_facename = info.facename;
- return TRUE;
+ return true;
}
#define wxFONTENUMPROC FONTENUMPROC
if ( tm->tmPitchAndFamily & TMPF_FIXED_PITCH )
{
// not a fixed pitch font
- return TRUE;
+ return true;
}
}
// check that we have the right encoding
if ( lf->lfCharSet != m_charset )
{
- return TRUE;
+ return true;
}
}
return m_fontEnum->OnFacename(lf->lfFaceName);
*/
- return TRUE;
+ return true;
}
// ----------------------------------------------------------------------------
}
// else: no such fonts, unknown encoding
- return TRUE;
+ return true;
}
-bool wxFontEnumerator::EnumerateEncodings(const wxString& family)
+bool wxFontEnumerator::EnumerateEncodings(const wxString& WXUNUSED(family))
{
wxFAIL_MSG(wxT("TODO"));
- return TRUE;
+ return true;
}
// ----------------------------------------------------------------------------
}
*/
+#endif // wxUSE_FONTMAP