git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53471
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/fontenum.h"
#include "wx/private/fontmgr.h"
#include "wx/fontenum.h"
#include "wx/private/fontmgr.h"
// ----------------------------------------------------------------------------
// wxFontEnumerator
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// wxFontEnumerator
// ----------------------------------------------------------------------------
{
return EnumerateEncodingsUTF8(facename);
}
{
return EnumerateEncodingsUTF8(facename);
}
+
+#endif // wxUSE_FONTENUM
if (hasFacename)
{
wxString faces = GetParamValue(wxT("face"));
if (hasFacename)
{
wxString faces = GetParamValue(wxT("face"));
- wxArrayString facenames(wxFontEnumerator::GetFacenames());
wxStringTokenizer tk(faces, wxT(","));
wxStringTokenizer tk(faces, wxT(","));
+#if wxUSE_FONTENUM
+ wxArrayString facenames(wxFontEnumerator::GetFacenames());
while (tk.HasMoreTokens())
{
int index = facenames.Index(tk.GetNextToken(), false);
while (tk.HasMoreTokens())
{
int index = facenames.Index(tk.GetNextToken(), false);
+#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