wxGTK was confused about swiss, roman, serif and sans serif fonts, fixed now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -205,9 +205,11 @@ void wxFontRefData::Init(int pointSize,
|
||||
case wxFONTFAMILY_TELETYPE:
|
||||
pango_font_description_set_family( m_nativeFontInfo.description, "monospace" );
|
||||
break;
|
||||
case wxFONTFAMILY_SWISS:
|
||||
case wxFONTFAMILY_ROMAN:
|
||||
pango_font_description_set_family( m_nativeFontInfo.description, "serif" );
|
||||
break;
|
||||
case wxFONTFAMILY_SWISS:
|
||||
// SWISS = sans serif
|
||||
default:
|
||||
pango_font_description_set_family( m_nativeFontInfo.description, "sans" );
|
||||
break;
|
||||
@@ -276,6 +278,10 @@ void wxFontRefData::InitFromNative()
|
||||
{
|
||||
m_family = wxFONTFAMILY_SWISS;
|
||||
}
|
||||
else if (m_faceName == wxT("serif"))
|
||||
{
|
||||
m_family = wxFONTFAMILY_ROMAN;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_family = wxFONTFAMILY_UNKNOWN;
|
||||
|
@@ -205,9 +205,11 @@ void wxFontRefData::Init(int pointSize,
|
||||
case wxFONTFAMILY_TELETYPE:
|
||||
pango_font_description_set_family( m_nativeFontInfo.description, "monospace" );
|
||||
break;
|
||||
case wxFONTFAMILY_SWISS:
|
||||
case wxFONTFAMILY_ROMAN:
|
||||
pango_font_description_set_family( m_nativeFontInfo.description, "serif" );
|
||||
break;
|
||||
case wxFONTFAMILY_SWISS:
|
||||
// SWISS = sans serif
|
||||
default:
|
||||
pango_font_description_set_family( m_nativeFontInfo.description, "sans" );
|
||||
break;
|
||||
@@ -276,6 +278,10 @@ void wxFontRefData::InitFromNative()
|
||||
{
|
||||
m_family = wxFONTFAMILY_SWISS;
|
||||
}
|
||||
else if (m_faceName == wxT("serif"))
|
||||
{
|
||||
m_family = wxFONTFAMILY_ROMAN;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_family = wxFONTFAMILY_UNKNOWN;
|
||||
|
Reference in New Issue
Block a user