Debian Codegraph @

scripts/round_to_int.py

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 import os
2 import fontforge
3
•4 os.chdir("instance_ttf")
5 for file in os.listdir():
6 if file.endswith(".ttf"):
7 font = fontforge.open(file)
8 for glyph in font.glyphs():
9 glyph.round()
10 font.generate(os.path.splitext(file)[0]+".ttf")