- const wxString& encoding)
- {
- if (m_Encodings == NULL) m_Encodings = new wxArrayString;
- m_Encodings -> Add(encoding);
- return TRUE;
- }
-
- // convenience function that returns array of facenames. Cannot be called
- // before EnumerateFacenames.
- wxArrayString *GetFacenames()
- { return m_Facenames; }
-
- // convenience function that returns array of encodings.
- // Cannot be called before EnumerateEncodings.
- wxArrayString *GetEncodings()
- { return m_Encodings; }
-
- // virtual dtor for the base class
- virtual ~wxFontEnumerator()
- {
- if (m_Facenames) delete m_Facenames;
- if (m_Encodings) delete m_Encodings;
- }
-
+ const wxString& WXUNUSED(encoding))
+ { return true; }
+
+
+
+ // convenience function that returns array of facenames.
+ static wxArrayString
+ GetFacenames(wxFontEncoding encoding = wxFONTENCODING_SYSTEM, // all
+ bool fixedWidthOnly = false);
+
+ // convenience function that returns array of all available encodings.
+ static wxArrayString GetEncodings(const wxString& facename = wxEmptyString);
+
+ // convenience function that returns true if the given face name exist
+ // in the user's system
+ static bool IsValidFacename(const wxString &str);
+