// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
{
}
-extern wxFont* CreateNormalFont();
-extern wxFont* CreateSmallFont();
-
const wxFont* wxStockGDIMac::GetFont(Item item)
{
wxFont* font = static_cast<wxFont*>(ms_stockObject[item]);
{
switch (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:
- font = CreateNormalFont() ;
+ font = new wxFont(wxOSX_SYSTEM_FONT_NORMAL);
break;
case FONT_SMALL:
- font = CreateSmallFont();
+ font = new wxFont(wxOSX_SYSTEM_FONT_SMALL);
break;
-#endif
default:
font = const_cast<wxFont*>(super::GetFont(item));
break;