- case wxSCRIPT: ff_family = FF_SCRIPT ;
- ff_face = _T("Script") ;
- break ;
- case wxDECORATIVE: ff_family = FF_DECORATIVE;
- break;
- case wxROMAN: ff_family = FF_ROMAN;
- ff_face = _T("Times New Roman") ;
- break;
- case wxTELETYPE:
- case wxMODERN: ff_family = FF_MODERN;
- ff_face = _T("Courier New") ;
- break;
- case wxSWISS: ff_family = FF_SWISS;
- ff_face = _T("Arial") ;
- break;
- case wxDEFAULT:
- default: ff_family = FF_SWISS;
- ff_face = _T("Arial") ;
- }
-
- if (M_FONTDATA->m_style == wxITALIC || M_FONTDATA->m_style == wxSLANT)
- ff_italic = 1;
- else
- ff_italic = 0;
-
- if (M_FONTDATA->m_weight == wxNORMAL)
- ff_weight = FW_NORMAL;
- else if (M_FONTDATA->m_weight == wxLIGHT)
- ff_weight = FW_LIGHT;
- else if (M_FONTDATA->m_weight == wxBOLD)
- ff_weight = FW_BOLD;
-
- const wxChar* pzFace = (const wxChar*) ff_face;
- if (!M_FONTDATA->m_faceName.IsNull())
- pzFace = (const wxChar*) M_FONTDATA->m_faceName ;
-
- /* Always calculate fonts using the screen DC (is this the best strategy?)
- * There may be confusion if a font is selected into a printer
- * DC (say), because the height will be calculated very differently.
- // What sort of display is it?
- int technology = ::GetDeviceCaps(dc, TECHNOLOGY);
-
- int nHeight;