git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3103
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
BYTE ff_italic;
int ff_weight = 0;
int ff_family = 0;
BYTE ff_italic;
int ff_weight = 0;
int ff_family = 0;
+ wxString ff_face(_T(""));
switch (M_FONTDATA->m_family)
{
case wxSCRIPT: ff_family = FF_SCRIPT ;
switch (M_FONTDATA->m_family)
{
case wxSCRIPT: ff_family = FF_SCRIPT ;
+ ff_face = _T("Script") ;
break ;
case wxDECORATIVE: ff_family = FF_DECORATIVE;
break;
case wxROMAN: ff_family = FF_ROMAN;
break ;
case wxDECORATIVE: ff_family = FF_DECORATIVE;
break;
case wxROMAN: ff_family = FF_ROMAN;
- ff_face = "Times New Roman" ;
+ ff_face = _T("Times New Roman") ;
break;
case wxTELETYPE:
case wxMODERN: ff_family = FF_MODERN;
break;
case wxTELETYPE:
case wxMODERN: ff_family = FF_MODERN;
- ff_face = "Courier New" ;
+ ff_face = _T("Courier New") ;
break;
case wxSWISS: ff_family = FF_SWISS;
break;
case wxSWISS: ff_family = FF_SWISS;
+ ff_face = _T("Arial") ;
break;
case wxDEFAULT:
default: ff_family = FF_SWISS;
break;
case wxDEFAULT:
default: ff_family = FF_SWISS;
+ ff_face = _T("Arial") ;
}
if (M_FONTDATA->m_style == wxITALIC || M_FONTDATA->m_style == wxSLANT)
}
if (M_FONTDATA->m_style == wxITALIC || M_FONTDATA->m_style == wxSLANT)
0, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,
PROOF_QUALITY, DEFAULT_PITCH | ff_family, pzFace);
#ifdef WXDEBUG_CREATE
0, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,
PROOF_QUALITY, DEFAULT_PITCH | ff_family, pzFace);
#ifdef WXDEBUG_CREATE
- if (m_hFont==NULL) wxError("Cannot create font","Internal Error") ;
+ if (m_hFont==NULL) wxError(_T("Cannot create font"),_T("Internal Error")) ;
#endif
return (M_FONTDATA->m_hFont != (WXHFONT) NULL);
}
#endif
return (M_FONTDATA->m_hFont != (WXHFONT) NULL);
}
wxString wxFont::GetFamilyString(void) const
{
wxString wxFont::GetFamilyString(void) const
{
switch (GetFamily())
{
case wxDECORATIVE:
switch (GetFamily())
{
case wxDECORATIVE:
+ fam = _T("wxDECORATIVE");
+ fam = _T("wxTELETYPE");
wxString wxFont::GetFaceName(void) const
{
wxString wxFont::GetFaceName(void) const
{
if (M_FONTDATA)
str = M_FONTDATA->m_faceName ;
return str;
if (M_FONTDATA)
str = M_FONTDATA->m_faceName ;
return str;
wxString wxFont::GetStyleString(void) const
{
wxString wxFont::GetStyleString(void) const
{
switch (GetStyle())
{
case wxITALIC:
switch (GetStyle())
{
case wxITALIC:
wxString wxFont::GetWeightString(void) const
{
wxString wxFont::GetWeightString(void) const
{
switch (GetWeight())
{
case wxBOLD:
switch (GetWeight())
{
case wxBOLD: