// functions, the user code can only get the objects of this type from
// somewhere and pass it somewhere else (possibly save them somewhere using
// ToString() and restore them using FromString())
-class WXDLLEXPORT wxNativeFontInfo
+class WXDLLIMPEXP_CORE wxNativeFontInfo
{
public:
#if wxUSE_PANGO
// set the XFLD
void SetXFontName(const wxString& xFontName);
#elif defined(__WXMSW__)
+ wxNativeFontInfo(const LOGFONT& lf_) : lf(lf_) { }
+
LOGFONT lf;
#elif defined(__WXPM__)
// OS/2 native structures that define a font
wxNativeFontInfo& operator=(const wxNativeFontInfo& info)
{
- Free();
- Init(info);
+ if (this != &info)
+ {
+ Free();
+ Init(info);
+ }
return *this;
}
#endif // wxUSE_PANGO