mirror of
https://github.com/tabler/tabler-icons.git
synced 2025-08-25 23:06:38 +02:00
iconfont optimize
This commit is contained in:
@@ -20,6 +20,9 @@ for file in files("./icons-outlined"):
|
|||||||
print (f"Correcting outline for {file}")
|
print (f"Correcting outline for {file}")
|
||||||
glyph = font.createChar(123, file)
|
glyph = font.createChar(123, file)
|
||||||
glyph.importOutlines("./icons-outlined/" + file)
|
glyph.importOutlines("./icons-outlined/" + file)
|
||||||
|
glyph.round()
|
||||||
|
glyph.simplify()
|
||||||
|
glyph.simplify()
|
||||||
glyph.correctDirection()
|
glyph.correctDirection()
|
||||||
glyph.export("./icons-outlined/" + file)
|
glyph.export("./icons-outlined/" + file)
|
||||||
glyph.clear()
|
glyph.clear()
|
||||||
|
@@ -230,9 +230,9 @@ gulp.task('iconfont-svg-outline', function (cb) {
|
|||||||
}
|
}
|
||||||
}).catch(error => console.log(error));
|
}).catch(error => console.log(error));
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
cb();
|
cb();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('iconfont-optimize', function() {
|
gulp.task('iconfont-optimize', function() {
|
||||||
|
Reference in New Issue
Block a user