aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
authorMichal Wolny <michal.wolny@versum.pl>2021-01-08 15:00:00 +0100
committerMichal Wolny <michal.wolny@versum.pl>2021-01-08 15:00:00 +0100
commit2a24349fd32731d90e13877876f9fca804f99b8a (patch)
tree4d1127cd0eda592a14f08c57e4ff1c962de14dc6 /gulpfile.js
parent`lock-access` fix (diff)
downloadtabler-icons-2a24349fd32731d90e13877876f9fca804f99b8a.tar.xz
[dev-iconfont-generation] fix svg outline stroke directions during iconfont generation
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/gulpfile.js b/gulpfile.js
index d461eecd..da9d0df8 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -230,7 +230,14 @@ gulp.task('iconfont-svg-outline', function (cb) {
}).catch(error => console.log(error));
});
- cb();
+ // correct svg outline directions in a child process using fontforge
+ const generate = cp.spawn("fontforge", ["-lang=py", "-script", "generate.py"], { stdio: 'inherit' });
+ generate.on("close", function (code) {
+ console.log(`Correcting svg outline directions exited with code ${code}`);
+ if (!code) {
+ cb();
+ }
+ });
});
});