X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e9ee227022d56afbe21612425c7f93e5ea8d713b..a795a5fd991ca89cf3739da0331822446198b83c:/src/gtk/textctrl.cpp?ds=sidebyside diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index a29fc54183..8af511ffc7 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -1717,7 +1717,14 @@ bool wxTextCtrl::GetStyle(long position, wxTextAttr& style) style.SetBackgroundColour(pattr->appearance.bg_color); style.SetTextColour(pattr->appearance.fg_color); - // TODO: set font, alignment, tabs and indents + const wxGtkString + pangoFontString(pango_font_description_to_string(pattr->font)); + + wxFont font; + if ( font.SetNativeFontInfo(wxString(pangoFontString)) ) + style.SetFont(font); + + // TODO: set alignment, tabs and indents } return true;