# HG changeset patch # User alex # Date 1070889112 0 # Node ID ce9c964c66c32ba2187acaa37fb86d4ad2938d28 # Parent 6ea42c885d604731960212dc3f99722a450220cb Fontconfig support based on patch by Arwed von Merkatz , but slightly reworked diff -r 6ea42c885d60 -r ce9c964c66c3 cfg-common.h --- a/cfg-common.h Mon Dec 08 12:44:11 2003 +0000 +++ b/cfg-common.h Mon Dec 08 13:11:52 2003 +0000 @@ -257,6 +257,13 @@ {"subfont-outline", &subtitle_font_thickness, CONF_TYPE_FLOAT, CONF_RANGE, 0, 8, NULL}, {"subfont-autoscale", &subtitle_autoscale, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL}, #endif +#ifdef HAVE_FONTCONFIG + {"fontconfig", &font_fontconfig, CONF_TYPE_FLAG, 0, 0, 1, NULL}, + {"nofontconfig", &font_fontconfig, CONF_TYPE_FLAG, 0, 1, 0, NULL}, +#else + {"fontconfig", "MPlayer wasn't compiled with Fontconfig support\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, + {"nofontconfig", "MPlayer wasn't compiled with Fontconfig support\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, +#endif #endif #else