X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b578601e3e0a6bb1cfdbbfe9aaee19a1331f97a8..c74b77ed51e23e2a8374e047c7f9fe3fa855058b:/src/unix/fontenum.cpp 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