]> git.saurik.com Git - wxWidgets.git/commitdiff
move SetPangoAttrsForFont to wxFont, should have been part of r70475
authorPaul Cornett <paulcor@bullseye.com>
Sun, 29 Jan 2012 08:49:01 +0000 (08:49 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Sun, 29 Jan 2012 08:49:01 +0000 (08:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/gnome/gprint.cpp

index 807477e2e06f05aa4c4b1ff1fe8de30cb2c1dfb4..77d8a9f6d4e569c1620673a96faf65c0baff4a1f 100644 (file)
@@ -1594,11 +1594,8 @@ void wxGnomePrinterDCImpl::DoDrawRotatedText(const wxString& text, wxCoord x, wx
 
     const wxScopedCharBuffer data(text.utf8_str());
 
-    size_t datalen = strlen(data);
-    pango_layout_set_text( m_layout, data, datalen);
-
-    const bool
-      setAttrs = wxGTKPrivate::SetPangoAttrsForFont(m_font, m_layout, datalen);
+    pango_layout_set_text(m_layout, data, data.length());
+    const bool setAttrs = m_font.GTKSetPangoAttrs(m_layout);
 
     if (m_textForegroundColour.IsOk())
     {