move SetPangoAttrsForFont to wxFont
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -31,7 +31,6 @@
|
||||
#endif
|
||||
|
||||
#include "wx/fontutil.h"
|
||||
#include "wx/gtk/private.h"
|
||||
#include "wx/dynlib.h"
|
||||
#include "wx/paper.h"
|
||||
|
||||
@@ -1740,11 +1739,9 @@ void wxGtkPrinterDCImpl::DoDrawRotatedText(const wxString& text, wxCoord x, wxCo
|
||||
|
||||
const wxScopedCharBuffer data = text.utf8_str();
|
||||
|
||||
size_t datalen = strlen(data);
|
||||
pango_layout_set_text( m_layout, data, datalen);
|
||||
pango_layout_set_text(m_layout, data, data.length());
|
||||
|
||||
const bool
|
||||
setAttrs = wxGTKPrivate::SetPangoAttrsForFont(m_font, m_layout, datalen);
|
||||
const bool setAttrs = m_font.GTKSetPangoAttrs(m_layout);
|
||||
if (m_textForegroundColour.IsOk())
|
||||
{
|
||||
unsigned char red = m_textForegroundColour.Red();
|
||||
|
Reference in New Issue
Block a user