X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/98de2b68055019d20b172d162032e23be2dfbb12..f7ff39c6ac67b995c13900af1b6a4b32e8c7f9f2:/src/common/gdicmn.cpp diff --git a/src/common/gdicmn.cpp b/src/common/gdicmn.cpp index ac407e93d9..5af91e126a 100644 --- a/src/common/gdicmn.cpp +++ b/src/common/gdicmn.cpp @@ -217,8 +217,6 @@ bool wxRect::Intersects(const wxRect& rect) const // wxColourDatabase // ============================================================================ -WX_DECLARE_STRING_HASH_MAP( wxColour *, wxStringToColourHashMap ); - // ---------------------------------------------------------------------------- // wxColourDatabase ctor/dtor // ---------------------------------------------------------------------------- @@ -531,6 +529,7 @@ void wxInitializeStockObjects () #endif */ #if defined(__WXMAC__) + // retrieve size of system font for all stock fonts int sizeFont = 12; Str255 fontName ; @@ -539,7 +538,12 @@ void wxInitializeStockObjects () GetThemeFont(kThemeSystemFont , GetApplicationScript() , fontName , &fontSize , &fontStyle ) ; sizeFont = fontSize ; +#if __WXMAC_CLASSIC__ wxNORMAL_FONT = new wxFont (fontSize, wxMODERN, wxNORMAL, wxNORMAL , false , wxMacMakeStringFromPascal(fontName) ); +#else + wxNORMAL_FONT = new wxFont () ; + wxNORMAL_FONT->MacCreateThemeFont( kThemeSystemFont ); +#endif #elif defined(__WXPM__) static const int sizeFont = 12; #else @@ -559,8 +563,13 @@ void wxInitializeStockObjects () #elif defined(__WXMAC__) wxSWISS_FONT = new wxFont (sizeFont, wxSWISS, wxNORMAL, wxNORMAL); /* Helv */ wxITALIC_FONT = new wxFont (sizeFont, wxROMAN, wxITALIC, wxNORMAL); +#if __WXMAC_CLASSIC__ GetThemeFont(kThemeSmallSystemFont , GetApplicationScript() , fontName , &fontSize , &fontStyle ) ; wxSMALL_FONT = new wxFont (fontSize, wxSWISS, wxNORMAL, wxNORMAL , false , wxMacMakeStringFromPascal( fontName ) ); +#else + wxSMALL_FONT = new wxFont () ; + wxSMALL_FONT->MacCreateThemeFont( kThemeSmallSystemFont ); +#endif #else wxSMALL_FONT = new wxFont (sizeFont - 2, wxSWISS, wxNORMAL, wxNORMAL); wxITALIC_FONT = new wxFont (sizeFont, wxROMAN, wxITALIC, wxNORMAL);