Search code examples
pythonfontstruetypewoff2

How do I convert a woff2 font to ttf using fonttools in Python?


I have woff2 files that I would like to convert to ttf using Python and the fonttools library. I have seen some methods on how to convert ttf fonts to woff2 but I can't use them to do the opposite.

Thanks in advance


Solution

  • I figured it out one can use fontTools.ttLib.woff2.decompress() to acheive this