+ if (m_fontdesc)
+ pango_font_description_free( m_fontdesc );
+
+ m_fontdesc = pango_font_description_copy( m_font.GetNativeFontInfo()->description );
+
+ // If there is a user or actually any scale applied to
+ // the device context, scale the font.
+ if (m_scaleY != 1.0)
+ {
+ double size = (double) pango_font_description_get_size( m_fontdesc );
+ size = size * m_scaleY;
+ pango_font_description_set_size( m_fontdesc, (int)size );
+ }