]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/textctrl.cpp
Fixed backslash escaping in wxArrayStringProperty::StringToValue()
[wxWidgets.git] / src / gtk / textctrl.cpp
index a29fc541833eabf1600c7d79d07dbb6b5ab27db2..8af511ffc7cbf04e1b908d613f9986fcd83baec7 100644 (file)
@@ -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;