Avoid infinite recursion between wxStockGDI and wxSystemSettions

There was a possible recursion from wxStockGDI::GetFont to
wxSystemSettings::GetFont and back, resolve by using direct font
creation, adding fixed system font.
This commit is contained in:
Stefan Csomor
2020-07-10 15:07:04 +02:00
committed by Vadim Zeitlin
parent 7be80a858d
commit 74bc9b5f71
3 changed files with 6 additions and 3 deletions

View File

@@ -473,6 +473,8 @@ wxFont::wxFont(wxOSXSystemFont font)
case wxOSX_SYSTEM_FONT_VIEWS:
uifont = kCTFontViewsFontType;
break;
case wxOSX_SYSTEM_FONT_FIXED:
uifont = kCTFontUIFontUserFixedPitch;
default:
break;
}