http://www.perlmonks.org?node_id=177567

punkass has asked for the wisdom of the Perl Monks concerning the following question:

In an effort to show examples of all my fonts in an HTML file, I need to get the font reference names out of .ttf files.

Originally posted as a Categorized Question.

  • Comment on How to extract the font name from a .ttf file?

Replies are listed 'Best First'.
Re: How to extract the font name from a .ttf file?
by belg4mit (Prior) on Jun 27, 2002 at 01:47 UTC
Re: Extracting font names
by belg4mit (Prior) on Jun 27, 2002 at 01:47 UTC
    I can't be sure but Font::TTF::Name looks like what you not. (No sarcasm, it's not entirely clear that this will do what is required, it appears to be part of an Awfully Big Ball of Mud).

    On a side note you're bigger trouble is with fonts whose files are named things like cr___i.ttf As most modern TTF appear to be.

    Originally posted as a Categorized Answer.