aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2021-01-20 22:18:49 +0100
committercodecalm <codecalm@gmail.com>2021-01-20 22:18:49 +0100
commitc8da3525fac1d02e48b957a0ed9676b28e38e394 (patch)
treed29c214daad37893134cd10637cc3536f37fcd2d /gulpfile.js
parentUpdate README.md (diff)
parentMerge pull request #104 from tabler/dev-iconfont-generation (diff)
downloadtabler-icons-c8da3525fac1d02e48b957a0ed9676b28e38e394.tar.xz
Merge branch 'dev' of https://github.com/tabler/tabler-icons
 Conflicts:  iconfont/fonts/tabler-icons.eot  iconfont/fonts/tabler-icons.ttf  iconfont/fonts/tabler-icons.woff  iconfont/fonts/tabler-icons.woff2
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js16
1 files changed, 13 insertions, 3 deletions
diff --git a/gulpfile.js b/gulpfile.js
index d461eecd..86fc12be 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();
+ }
+ });
});
});
@@ -253,9 +260,12 @@ gulp.task('iconfont', function () {
.pipe(iconfont({
fontName: 'tabler-icons',
prependUnicode: true,
- formats: ['ttf', 'eot', 'woff', 'woff2'],
+ formats: ['ttf', 'eot', 'woff', 'woff2', 'svg'],
normalize: true,
- startUnicode: maxUnicode
+ startUnicode: maxUnicode,
+ fontHeight: 1000,
+ descent: 100,
+ ascent: 986.5
}))
.on('glyphs', function (glyphs, options) {
//glyphs json