git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50337
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/fontutil.h"
#include "wx/graphics.h"
-#include "wx/mac/private.h"
+#include "wx/mac/uma.h"
#ifndef __DARWIN__
#include <ATSUnicode.h>
OSStatus status = noErr;
#if wxMAC_USE_CORE_TEXT
- if ( CTFontCreateWithName != NULL )
+ if ( UMAGetSystemVersion() >= 0x1050 )
{
if ( m_faceName.empty() && m_family == wxDEFAULT && m_macUIFontType == kCTFontNoFontType )
{
bool wxFont::MacCreateThemeFont(wxUint16 themeFontID)
{
#if wxMAC_USE_CORE_TEXT
- if ( HIThemeGetUIFontType != NULL )
+ if ( UMAGetSystemVersion() >= 0x1050)
{
return MacCreateUIFont(HIThemeGetUIFontType(themeFontID));
}