There are many use cases where we need to extract the original font name of an OTF/TTF file programmatically. The filename is obviously not reliable as it could be modified. It turns out that every OTF/TTF file stores metadata information in tables which includes quite a few pieces of information. The most relevant one is the font family and sub-family name. We will be using fonttools to extract this information.
1,678 total views, 4 views today