fontmeta

An Utility to get ttf/otf font metadata


Keywords
Font, TTF, OTF
License
MPL-2.0
Install
pip install fontmeta==1.2.0

Documentation

Warning!!!

This repo is moved to https://gitlab.com/codesigntheory/fontmeta

FontMeta

An utility and library to get metadata from TTF/OTF fonts.

Installation

Via pip:

pip install fontmeta

Usage

Simply Instantiate a FontMeta object with font's file path. call instance.get_full_data() for full data and instance.get_data() for streamlined data.

from fontmeta import FontMeta
meta_instance = FontMeta('path_to_file')

Functions

get_full_data
Arguments: None Returns full Metadata.
get_data
Arguments: None Returns only streamlined field name and value in a dict.