DEV Community

anasrin
anasrin

Posted on • Originally published at anasrar.github.io

5

Convert variable font to static font using Python

fonttools

A library to manipulate font files from Python1.

Install

pip install fonttools
Enter fullscreen mode Exit fullscreen mode

Convert Font

fonttools varLib.mutator ./font.ttf wght=400 wdth=85
Enter fullscreen mode Exit fullscreen mode

Documentation: https://fonttools.readthedocs.io/en/latest/varLib/mutator.html#module-fontTools.varLib.mutator


  1. https://github.com/fonttools/fonttools

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more