#include "wx/fontenum.h"
#include "wx/private/fontmgr.h"
+#if wxUSE_FONTENUM
+
// ----------------------------------------------------------------------------
// wxFontEnumerator
// ----------------------------------------------------------------------------
{
return EnumerateEncodingsUTF8(facename);
}
+
+#endif // wxUSE_FONTENUM
if (hasFacename)
{
wxString faces = GetParamValue(wxT("face"));
- wxArrayString facenames(wxFontEnumerator::GetFacenames());
wxStringTokenizer tk(faces, wxT(","));
+#if wxUSE_FONTENUM
+ wxArrayString facenames(wxFontEnumerator::GetFacenames());
while (tk.HasMoreTokens())
{
int index = facenames.Index(tk.GetNextToken(), false);
break;
}
}
+#else // !wxUSE_FONTENUM
+ // just use the first face name if we can't check its availability:
+ if (tk.HasMoreTokens())
+ facename = tk.GetNextToken();
+#endif // wxUSE_FONTENUM/!wxUSE_FONTENUM
}
// encoding