Blind patch for SetFont() in Unicode mode for wxX11.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
0c5c0375b9
commit
1175aa4e13
@ -1771,6 +1771,16 @@ void wxWindowDC::SetFont( const wxFont &font )
|
||||
wxCHECK_RET( Ok(), wxT("invalid dc") );
|
||||
|
||||
m_font = font;
|
||||
|
||||
#if wxUSE_UNICODE
|
||||
if (m_font.Ok())
|
||||
{
|
||||
if (m_fontdesc)
|
||||
pango_font_description_free( m_fontdesc );
|
||||
|
||||
m_fontdesc = pango_font_description_copy( m_font.GetNativeFontInfo()->description );
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void wxWindowDC::SetPen( const wxPen &pen )
|
||||
|
Loading…
Reference in New Issue
Block a user