☰
Debian Codegraph
@
3.4+ds-1
/
/
scripts
/
round_to_int.py
☽
☼
scripts/round_to_int.py
code
plain
raw
symbols
◀
original
fully applied
▶
SCIP
OFL-1.1
2015-2022 Amin Abedi <
[email protected]
>
debian/copyright
1 Debian patch touch this file
Drop-superfluous-path-separator.patch
view at this patch
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"
)