- 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);