This patch adds fontconfig support for ghostscript if fontconfig is available.
Created attachment 2206 [details] ghostscript-esp-fontconfig.patch had a minor problem with applying for me but is really easy to fix.
Is this a newer version of the patch from bug #687595? Note that we can't just apply large patches from ESP Ghostscript because of the license conflict; we need permission and assignment from the author. In any case, we definitely want to support fontconfig when it's available. We already have stubs for native font enumeration systems, but I think they're only implemented on MacOS Carbon.
*** This bug has been marked as a duplicate of 687595 ***
I originally wrote the core of the attached patch (and take full blame for any errors that lie therein - I was pretty new to plain C at the time). My unmodified version can be found on the Scribus bug tracker link in #67595. My patch was always intended for inclusion in mainline gs, and I'd be very happy to take care of any required copyright assignments to make that possible. By the looks there haven't been serious changes to the actual code, though the all -important build integration has been done (thanks!). I would personally expect it to be fine to merge as-is.