Sergey
Sergey

Reputation: 21241

Python: is there a TrueType font library?

I need to extract information from .ttf files. Such as the font's name and style. Maybe some more info in future. How to do this in Python more easily than looking for a specification and coding a lot?

A short code example would be great.

Upvotes: 3

Views: 3252

Answers (1)

nfechner
nfechner

Reputation: 17535

Check this out: How to extract font names from TTF files using Python and our old friend 'the command line'

Note: This took me about 10 seconds to google...

Upvotes: 5

Related Questions