X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..5cb61fed97c78e0399ba18457e45b51f8eb15edf:/src/unix/fontenum.cpp?ds=sidebyside diff --git a/src/unix/fontenum.cpp b/src/unix/fontenum.cpp index 869a546f39..3b9be3e2cb 100644 --- a/src/unix/fontenum.cpp +++ b/src/unix/fontenum.cpp @@ -32,6 +32,7 @@ #include "wx/fontmap.h" #include "wx/fontenum.h" #include "wx/fontutil.h" +#include "wx/encinfo.h" // ---------------------------------------------------------------------------- // Pango @@ -51,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); } @@ -59,11 +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 ) { OnFacename( wxT("monospace") ); } else +#endif { PangoFontFamily **families = NULL; gint n_families = 0; @@ -78,11 +81,16 @@ bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding, for (int i=0; i