X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..a0845d45830eb22769107a61a6cb3485fa21922b:/src/unix/fontenum.cpp diff --git a/src/unix/fontenum.cpp b/src/unix/fontenum.cpp index 9ef4f46f20..a577af0357 100644 --- a/src/unix/fontenum.cpp +++ b/src/unix/fontenum.cpp @@ -6,7 +6,7 @@ // Created: 01.10.99 // RCS-ID: $Id$ // Copyright: (c) Vadim Zeitlin -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -52,7 +52,7 @@ cmp_families (const void *a, const void *b) { const char *a_name = pango_font_family_get_name (*(PangoFontFamily **)a); const char *b_name = pango_font_family_get_name (*(PangoFontFamily **)b); - + return g_utf8_collate (a_name, b_name); } @@ -60,11 +60,17 @@ cmp_families (const void *a, const void *b) bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding, bool fixedWidthOnly) { - 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 +#endif { PangoFontFamily **families = NULL; gint n_families = 0; @@ -79,13 +85,22 @@ bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding, for (int i=0; i