I’m thinking about writing a Ruby extension for Linux/*BSD/Darwin to
enumerate all the fonts (Postscript and TTF) that are installed, along
with their attributes. Given such an extension I could write a Ruby
program to generate a custom ImageMagick font config file.
Can somebody enlighten me about where to start? Is there an existing
library I can leverage? I found fontconfig (www.fontconfig.org) but I’m
not sure that’s right.