X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2680ced12cbbed16990007c5fa3ea7730700122..50a2e26fd717e510a1beae2e1da2f93742907eba:/src/osx/carbon/gdiobj.cpp?ds=sidebyside diff --git a/src/osx/carbon/gdiobj.cpp b/src/osx/carbon/gdiobj.cpp index 81fb05c458..9dcae80012 100644 --- a/src/osx/carbon/gdiobj.cpp +++ b/src/osx/carbon/gdiobj.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/mac/carbon/gdiobj.cpp +// Name: src/osx/carbon/gdiobj.cpp // Purpose: wxGDIObject class // Author: Stefan Csomor // Modified by: @@ -64,11 +64,19 @@ const wxFont* wxStockGDIMac::GetFont(Item item) #if wxOSX_USE_COCOA_OR_CARBON case FONT_NORMAL: font = new wxFont; +#if wxOSX_USE_CARBON font->MacCreateFromThemeFont(kThemeSystemFont); +#else + font->MacCreateFromUIFont(kCTFontSystemFontType); +#endif break; case FONT_SMALL: font = new wxFont; +#if wxOSX_USE_CARBON font->MacCreateFromThemeFont(kThemeSmallSystemFont); +#else + font->MacCreateFromUIFont(kCTFontSmallSystemFontType); +#endif break; #else case FONT_NORMAL: