Mirroring the following upstream merge request https://gitlab.freedesktop.org/fontconfig/fontconfig/merge_requests/67