Back in 2006 (or maybe earlier?), I wrote a PHP script that took some text and an on-server TrueType font file, and produced an image of that text using that font. For example, the old logotype of this site, in Benguiat Gothic, was produced via the following code:
Nowadays, we use webfonts, so this is kind of obsolete. Let me know if you’d like more info about it.