From f6e29a937839c499f8457f830e3ee3399077c5ac Mon Sep 17 00:00:00 2001 From: codecalm Date: Thu, 21 Jan 2021 00:59:13 +0100 Subject: iconfont optimize --- fix-outline.py | 3 +++ gulpfile.js | 4 ++-- 2 files changed, 5 insertions(+), 2 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() diff --git a/gulpfile.js b/gulpfile.js index 96b69001..9f541ab7 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -230,9 +230,9 @@ gulp.task('iconfont-svg-outline', function (cb) { } }).catch(error => console.log(error)); }); - }); - cb(); + cb(); + }); }); gulp.task('iconfont-optimize', function() { -- cgit v1.2.1