virtual ~wxFontRefData();
void SetNoAntiAliasing( bool no = TRUE ) { m_noAA = no; }
- bool GetNoAntiAliasing() { return m_noAA; }
+ bool GetNoAntiAliasing() const { return m_noAA; }
protected:
// common part of all ctors
case wxDEFAULT :
m_macFontNum = ::GetAppFont() ;
break ;
- case wxDECORATIVE :
- ::GetFNum( "\pTimes" , &m_macFontNum) ;
- break ;
- case wxROMAN :
- ::GetFNum( "\pTimes" , &m_macFontNum) ;
- break ;
case wxSCRIPT :
+ case wxROMAN :
+ case wxDECORATIVE :
+#ifdef __WXMAC_OSX__
+ ::GetFNum( "\pTimes New Roman" , &m_macFontNum) ;
+#else
::GetFNum( "\pTimes" , &m_macFontNum) ;
+#endif
break ;
case wxSWISS :
+#ifdef __WXMAC_OSX__
+ ::GetFNum( "\pLucida Grande" , &m_macFontNum) ;
+#else
::GetFNum( "\pGeneva" , &m_macFontNum) ;
+#endif
break ;
case wxMODERN :
+#ifdef __WXMAC_OSX__
+ ::GetFNum( "\pMonaco" , &m_macFontNum) ;
+#else
::GetFNum( "\pMonaco" , &m_macFontNum) ;
+#endif
break ;
}
Str255 name ;
return M_FONTDATA->m_encoding;
}
-bool wxFont::GetNoAntiAliasing()
+bool wxFont::GetNoAntiAliasing() const
{
wxCHECK_MSG( M_FONTDATA != NULL , NULL, wxT("invalid font") );
return M_FONTDATA->m_noAA;