Instead of setting FONTCONFIG_FILE to a custom font configuration, pass the directory containing the fonts as TEST_FONTS and use FcConfigAppFontAddDir to add them to the default font configuration.
Instead of setting FONTCONFIG_FILE to a custom font configuration, pass the directory containing the fonts as TEST_FONTS and use FcConfigAppFontAddDir to add them to the default font configuration.