X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..350a44d9c0b439cfcfb08142403a6d34a069e3f4:/src/unix/fontenum.cpp diff --git a/src/unix/fontenum.cpp b/src/unix/fontenum.cpp index 869a546f39..4ba3e6512d 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 @@ -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,10 +81,14 @@ bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding, for (int i=0; i