Skip to main content

An Utility to get ttf/otf font metadata

Project description

https://badge.fury.io/py/fontmeta.svg

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fontmeta-1.6.1.tar.gz (6.9 kB view hashes)

Uploaded source

Built Distribution

fontmeta-1.6.1-py3.6.egg (13.7 kB view hashes)

Uploaded 3 6

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page