- const gchar *name = pango_font_family_get_name( families[i] );
-
- wxString tmp( name, wxConvUTF8 );
- OnFacename( tmp );
+#if defined(__WXGTK24__) || defined(HAVE_PANGO_FONT_FAMILY_IS_MONOSPACE)
+ if (!fixedWidthOnly || (
+#ifdef __WXGTK24__
+ !gtk_check_version(2,4,0) &&
+#endif
+ pango_font_family_is_monospace(families[i])
+ ) )
+#endif
+ {
+ const gchar *name = pango_font_family_get_name(families[i]);
+ OnFacename(wxString(name, wxConvUTF8));
+ }