always transfer font family (#23158)
see #23144 only doing this when no font name was given lead to a test failure in richtextctrltest.cpp RichTextCtrlTestCase::Font
This commit is contained in:
parent
08301b1b4a
commit
a8937c394d
1 changed files with 5 additions and 7 deletions
|
|
@ -258,15 +258,13 @@ wxFontRefData::wxFontRefData(const wxFontInfo& info)
|
|||
{
|
||||
m_info.Init();
|
||||
|
||||
wxFontFamily family = info.GetFamily();
|
||||
if (family == wxFONTFAMILY_DEFAULT)
|
||||
family = wxFONTFAMILY_SWISS;
|
||||
SetFamily(family);
|
||||
|
||||
if ( info.HasFaceName() )
|
||||
SetFaceName(info.GetFaceName());
|
||||
else
|
||||
{
|
||||
wxFontFamily family = info.GetFamily();
|
||||
if (family == wxFONTFAMILY_DEFAULT)
|
||||
family = wxFONTFAMILY_SWISS;
|
||||
SetFamily(family);
|
||||
}
|
||||
|
||||
m_info.SetSizeOrDefault(info.GetFractionalPointSize());
|
||||
SetNumericWeight(info.GetNumericWeight());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue