void SetNoAntiAliasing( bool no = TRUE ) { m_noAA = no; }
bool GetNoAntiAliasing() { return m_noAA; }
-
+
// and this one also modifies all the other font data fields
void SetNativeFontInfo(const wxNativeFontInfo& info);
};
// ----------------------------------------------------------------------------
-// wxFontRefData
+// wxFontRefData
// ----------------------------------------------------------------------------
void wxFontRefData::Init(int pointSize,
m_underlined = underlined;
m_encoding = encoding;
-
+
m_noAA = FALSE;
#ifdef __WXGTK20__
break;
}
}
-
+
SetStyle( m_style );
SetPointSize( m_pointSize );
SetWeight( m_weight );
m_encoding = data.m_encoding;
m_noAA = data.m_noAA;
-
- m_nativeFontInfo = data.m_nativeFontInfo;
+
+ // Forces a copy of the internal data. wxNativeFontInfo should probably
+ // have a copy ctor and assignment operator to fix this properly but that
+ // would break binary compatibility...
+ m_nativeFontInfo.FromString(data.m_nativeFontInfo.ToString());
}
wxFontRefData::wxFontRefData(int size, int family, int style,