Bill Nottingham (notting(a)redhat.com) said:
So, maybe I'm insane, but if all you want is a sans bold, etc.
font - that
can't be more than about 20 lines of fontconfig code to look for a match
for the 'sans' pattern and get a filename. That way:
- you don't have to hardcode any files
- you don't have to hardcode any requirements
OK, *somewhat* more than 20 lines. But still...
[notting@nostromo: ~]$ ./font-fu arial:style=bold
Found /usr/share/fonts/liberation/LiberationSans-Bold.ttf for arial:style=bold
[notting@nostromo: ~]$ ./font-fu serif
Found /usr/share/fonts/dejavu/DejaVuSerif.ttf for serif
Bill