Commit 1ea3b99f authored by Melroy van den Berg's avatar Melroy van den Berg
Browse files

Upload New File

parent 98a1c5ff
#!/usr/bin/env python3
# Convert OTF fonts to compressed WOFF2 format,
# using fonttools
# $ pip3 install fonttools
# $ pip3 install brotli
import os
from fontTools.ttLib.woff2 import compress
for file in os.listdir('.'):
if os.path.isfile(file) and file.endswith('.otf'):
name = file.split('.otf')[0]
newfile = name + '.woff2'
compress(file, newfile)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment