* src/xsettings.c (apply_xft_settings): Don't enable Xft code
unless Cairo FreeType support is present. (bug#58830)
apply_xft_settings (Display_Info *dpyinfo,
struct xsettings *settings)
{
-#if defined USE_CAIRO || defined HAVE_XFT
+#if defined HAVE_XFT \
+ || (defined USE_CAIRO && defined CAIRO_HAS_FC_FONT \
+ && defined CAIRO_HAS_FT_FONT)
FcPattern *pat;
struct xsettings oldsettings;
bool changed = false;
}
else
FcPatternDestroy (pat);
-#endif /* HAVE_XFT */
+#endif /* HAVE_XFT || (USE_CAIRO && CAIRO_HAS_FC_FONT && CAIRO_HAS_FT_FONT) */
}
#endif