m_macFontSize = 0;
m_macFontStyle = 0;
m_fontId = 0;
+ m_noAA = FALSE;
}
wxFontRefData::~wxFontRefData()
m_macFontNum = ::GetAppFont() ;
else
{
-#if TARGET_CARBON
- c2pstrcpy( (StringPtr) wxBuffer, m_faceName ) ;
-#else
- strcpy( (char *) wxBuffer, m_faceName ) ;
- c2pstr( (char *) wxBuffer ) ;
-#endif
- ::GetFNum( (StringPtr) wxBuffer, &m_macFontNum);
+ Str255 fontname ;
+ wxMacStringToPascal( m_faceName , fontname ) ;
+ ::GetFNum( fontname, &m_macFontNum);
}
}
RealizeResource();
}
+void wxFont::SetNoAntiAliasing( bool no )
+{
+ Unshare();
+
+ M_FONTDATA->SetNoAntiAliasing( no );
+
+ RealizeResource();
+}
+
// ----------------------------------------------------------------------------
// accessors
// ----------------------------------------------------------------------------
return M_FONTDATA->m_encoding;
}
+bool wxFont::GetNoAntiAliasing()
+{
+ return M_FONTDATA->m_noAA;
+}
+