framer / fixfont

Fix WOFF2 font metadata
MIT License
1 stars 0 forks source link

fixfont.py

WOFF2 fonts intended for use as web fonts are sometimes distributed with mangled metadata to “protect” them from being used as desktop fonts. Some tools however, like Framer, rely on having the metadata available to show something sensible in the UI.

This script can be used to fix the metadata of those fonts files.

Usage

fixfont.py <font.woff2> [-f "family name"] [-s "subfamily name"] [-o output.woff2]

Requirements

The requirements are provided in requirements.txt. Install them with pip install -r requirements.txt.

Running in a Python virtual environment is recommended.