aboutsummaryrefslogtreecommitdiff
path: root/fix-outline.py
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2021-01-21 00:59:13 +0100
committercodecalm <codecalm@gmail.com>2021-01-21 00:59:13 +0100
commitf6e29a937839c499f8457f830e3ee3399077c5ac (patch)
tree05ed09162d773d4592e4328211e4d991f327f5c7 /fix-outline.py
parenticonfont process optimize (diff)
downloadtabler-icons-f6e29a937839c499f8457f830e3ee3399077c5ac.tar.xz
iconfont optimize
Diffstat (limited to 'fix-outline.py')
-rw-r--r--fix-outline.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/fix-outline.py b/fix-outline.py
index 4eb7466c..2a3c6ac8 100644
--- a/fix-outline.py
+++ b/fix-outline.py
@@ -20,6 +20,9 @@ for file in files("./icons-outlined"):
print (f"Correcting outline for {file}")
glyph = font.createChar(123, file)
glyph.importOutlines("./icons-outlined/" + file)
+ glyph.round()
+ glyph.simplify()
+ glyph.simplify()
glyph.correctDirection()
glyph.export("./icons-outlined/" + file)
glyph.clear()