/////////////////////////////////////////////////////////////////////////////
-// Name: src/mac/carbon/gdiobj.cpp
+// Name: src/osx/carbon/gdiobj.cpp
// Purpose: wxGDIObject class
// Author: Stefan Csomor
// Modified by:
#include "wx/link.h"
#include "wx/osx/private.h"
+#include "wx/font.h"
// Linker will discard entire object file without this
wxFORCE_LINK_THIS_MODULE(gdiobj)
switch (item)
{
case FONT_NORMAL:
- font = new wxFont;
- font->MacCreateFromThemeFont(kThemeSystemFont);
+ font = new wxFont(wxOSX_SYSTEM_FONT_NORMAL);
break;
case FONT_SMALL:
- font = new wxFont;
- font->MacCreateFromThemeFont(kThemeSmallSystemFont);
+ font = new wxFont(wxOSX_SYSTEM_FONT_SMALL);
break;
default:
font = const_cast<wxFont*>(super::GetFont(item));