+ if (wx_pango_version_check(1,8,0) != NULL ||
+ pixelSize.GetWidth() != 0)
+ {
+ // NOTE: pango_font_description_set_absolute_size() only sets the font height;
+ // if the user set the pixel width of the font explicitly or the pango
+ // library is too old, we cannot proceed
+ return false;
+ }
+
+ pango_font_description_set_absolute_size( m_nativeFontInfo.description,
+ pixelSize.GetHeight() * PANGO_SCALE );
+
+ return true;