]> git.saurik.com Git - wxWidgets.git/commitdiff
weak link test is not optimal, as CoreText is already having some symbols defined...
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 30 Nov 2007 08:19:44 +0000 (08:19 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 30 Nov 2007 08:19:44 +0000 (08:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/font.cpp

index db727b6515ec4c5de4efc4bd0ddaeb5fa83a9617..84920cb6c427c12a5a95eff42cf811e34d616e41 100644 (file)
@@ -24,7 +24,7 @@
 #include "wx/fontutil.h"
 #include "wx/graphics.h"
 
-#include "wx/mac/private.h"
+#include "wx/mac/uma.h"
 
 #ifndef __DARWIN__
 #include <ATSUnicode.h>
@@ -235,7 +235,7 @@ void wxFontRefData::MacFindFont()
     OSStatus status = noErr;
 
 #if wxMAC_USE_CORE_TEXT
-    if (  CTFontCreateWithName != NULL )
+    if (  UMAGetSystemVersion() >= 0x1050 )
     {
         if ( m_faceName.empty() && m_family == wxDEFAULT && m_macUIFontType == kCTFontNoFontType )
         {
@@ -517,7 +517,7 @@ bool wxFont::MacCreateUIFont(wxUint32 ctFontType )
 bool wxFont::MacCreateThemeFont(wxUint16 themeFontID)
 {
 #if wxMAC_USE_CORE_TEXT
-    if ( HIThemeGetUIFontType != NULL )
+    if ( UMAGetSystemVersion() >= 0x1050)
     {
         return MacCreateUIFont(HIThemeGetUIFontType(themeFontID));
     }