DEV Community

anasrin
anasrin

Posted on • Originally published at anasrar.github.io

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)