diff --git a/src/common/fontcmn.cpp b/src/common/fontcmn.cpp index 1a8b50c376..1cc5f55b45 100644 --- a/src/common/fontcmn.cpp +++ b/src/common/fontcmn.cpp @@ -122,6 +122,15 @@ wxString wxFontBase::GetNativeFontInfoDesc() const return fontDesc; } +void wxFontBase::SetNativeFontInfo(const wxString& info) +{ + wxNativeFontInfo fontInfo; + if ( !info.empty() && fontInfo.FromString(info) ) + { + SetNativeFontInfo(fontInfo); + } +} + wxFont& wxFont::operator=(const wxFont& font) { if ( this != &font )