fix creating wxFont with non-ascii name, closes #16671

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2014-11-12 07:43:06 +00:00
parent 4d40e7806c
commit 7913d200c8
3 changed files with 9 additions and 5 deletions

View File

@@ -106,4 +106,8 @@ void wxFontButton::UpdateFont()
gtk_font_button_set_font_name(GTK_FONT_BUTTON(m_widget), wxGTK_CONV(fontname));
}
void wxFontButton::SetNativeFontInfo(const char* gtkdescription)
{
m_selectedFont.SetNativeFontInfo(wxString::FromUTF8(gtkdescription));
}
#endif // wxUSE_FONTPICKERCTRL