- tn.GetNextToken(); // x-res
- tn.GetNextToken(); // y-res
-
- tmp = tn.GetNextToken().MakeUpper(); // spacing
-
- if (tmp == wxT("M"))
- M_FONTDATA->m_family = wxMODERN;
- else if (M_FONTDATA->m_faceName == wxT("TIMES"))
- M_FONTDATA->m_family = wxROMAN;
- else if (M_FONTDATA->m_faceName == wxT("HELVETICA"))
- M_FONTDATA->m_family = wxSWISS;
- else if (M_FONTDATA->m_faceName == wxT("LUCIDATYPEWRITER"))
- M_FONTDATA->m_family = wxTELETYPE;
- else if (M_FONTDATA->m_faceName == wxT("LUCIDA"))
- M_FONTDATA->m_family = wxDECORATIVE;
- else if (M_FONTDATA->m_faceName == wxT("UTOPIA"))
- M_FONTDATA->m_family = wxSCRIPT;
-
- tn.GetNextToken(); // avg width
-
- // deal with font encoding
- M_FONTDATA->m_encoding = fontdata.GetEncoding();
- if ( M_FONTDATA->m_encoding == wxFONTENCODING_SYSTEM )
- {
- wxString registry = tn.GetNextToken().MakeUpper(),
- encoding = tn.GetNextToken().MakeUpper();
+ m_refData = new wxFontRefData(pointSize, family, style, weight,
+ underlined, face, encoding);