aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
authorPaweł Kuna <1282324+codecalm@users.noreply.github.com>2021-01-19 22:56:20 +0100
committerGitHub <noreply@github.com>2021-01-19 22:56:20 +0100
commitf5fea343e04e514bf62690cd5b75489844e07635 (patch)
treefaac8dec1fb5c21374ad83a370c1da9ab2b17e2c /gulpfile.js
parent`lock-access` fix (diff)
parent[dev-iconfont-generation] add svg font generation, adjust ascent to work for ... (diff)
downloadtabler-icons-f5fea343e04e514bf62690cd5b75489844e07635.tar.xz
Merge pull request #104 from tabler/dev-iconfont-generation
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