diff --git a/configure.in b/configure.in index ebe45a9592..810b4d8464 100644 --- a/configure.in +++ b/configure.in @@ -2777,8 +2777,6 @@ libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config CFLAGS="$CFLAGS $wx_cv_cflags_gtk" LIBS="$LIBS $wx_cv_libs_gtk" - AC_CHECK_FUNCS([pango_font_family_is_monospace]) - dnl gtk_icon_size_lookup is not available in the GTK+ headers dnl that have shipped with some versions of Sun's JDS. Not using dnl AC_CHECK_FUNCS here since it only checks the function exists diff --git a/src/unix/fontenum.cpp b/src/unix/fontenum.cpp index 3b9be3e2cb..a577af0357 100644 --- a/src/unix/fontenum.cpp +++ b/src/unix/fontenum.cpp @@ -60,9 +60,13 @@ cmp_families (const void *a, const void *b) bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding, bool fixedWidthOnly) { -#ifndef HAVE_PANGO_FONT_FAMILY_IS_MONOSPACE - if ( fixedWidthOnly ) - { +#if defined(__WXGTK20__) || !defined(HAVE_PANGO_FONT_FAMILY_IS_MONOSPACE) + if ( fixedWidthOnly +#if defined(__WXGTK24__) + && (gtk_check_version(2,4,0) != NULL) +#endif + ) +{ OnFacename( wxT("monospace") ); } else @@ -81,9 +85,13 @@ bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding, for (int i=0; i