Please add a FONTCONFIG_CONFDIR environment variable pointing to a directory of conf files
Right now fontconfig provides no mean to point its utilities to a directory of additional config files.
That mean that font packages, that include fonts with broken naming, will get this broken naming registered in their appstream and rpm provides, even when they include a fontconfig ruleset that fixes the problem.
For example a font like Raleway, that registers its version in the upstream family name, ends up with
Provides: font(raleway-v4020)
even though what the user will get once the package is installed is font(raleway)
(thanks to a fontconfig fixup)
Please add a FONTCONFIG_CONFDIR environment variable that points fontconfig to a directory containing additional conf files (if you’re ambitious you can make it a FONTCONFIG_CONFPATh to allow declaring multiple directories)
At rpm build time (to take one packaging tech) the fontconfig conf files provided by the package itself exist in:
%{buildroot}%{_datadir}/fontconfig/conf.avail
and nowhere else