-
- if (tag.HasParam(wxT("FACE")))
- {
- if (m_Faces.GetCount() == 0)
- {
- wxFontEnumerator enu;
- enu.EnumerateFacenames();
- m_Faces = *enu.GetFacenames();
- }
- wxStringTokenizer tk(tag.GetParam(wxT("FACE")), ",");
+
+ wxString faces;
+ if (tag.GetParamAsString(wxT("FACE"), &faces))
+ {
+ if (m_Faces.GetCount() == 0)
+ m_Faces = wxFontEnumerator::GetFacenames();
+
+ wxStringTokenizer tk(faces, wxT(","));