Use non-deprecated CTFontUIFontType constants

Use "new" (available since 10.5, for most part) values of the enum
instead of the deprecated ones, which are still defined, but might not
be in the future.

No real changes.
This commit is contained in:
Vadim Zeitlin
2021-08-27 00:08:18 +02:00
parent 27047eb338
commit 046fde8580

View File

@@ -487,28 +487,28 @@ public:
wxFALLTHROUGH;
case wxOSX_SYSTEM_FONT_NORMAL:
uifont = kCTFontSystemFontType;
uifont = kCTFontUIFontSystem;
break;
case wxOSX_SYSTEM_FONT_BOLD:
uifont = kCTFontEmphasizedSystemFontType;
uifont = kCTFontUIFontEmphasizedSystem;
break;
case wxOSX_SYSTEM_FONT_SMALL:
uifont = kCTFontSmallSystemFontType;
uifont = kCTFontUIFontSmallSystem;
break;
case wxOSX_SYSTEM_FONT_SMALL_BOLD:
uifont = kCTFontSmallEmphasizedSystemFontType;
uifont = kCTFontUIFontSmallEmphasizedSystem;
break;
case wxOSX_SYSTEM_FONT_MINI:
uifont = kCTFontMiniSystemFontType;
uifont = kCTFontUIFontMiniSystem;
break;
case wxOSX_SYSTEM_FONT_MINI_BOLD:
uifont = kCTFontMiniEmphasizedSystemFontType;
uifont = kCTFontUIFontMiniEmphasizedSystem;
break;
case wxOSX_SYSTEM_FONT_LABELS:
uifont = kCTFontLabelFontType;
uifont = kCTFontUIFontLabel;
break;
case wxOSX_SYSTEM_FONT_VIEWS:
uifont = kCTFontViewsFontType;
uifont = kCTFontUIFontViews;
break;
case wxOSX_SYSTEM_FONT_FIXED:
uifont = kCTFontUIFontUserFixedPitch;