Extract all glyphs in the svg font to separate svg icon files
npm i svg-font-extractor
const SFE = require('svg-font-extractor');
SFE({
input: "path/to/svg-font.svg",
output: "path/to/output/dir",
onSVGItem: function(item) {
// update item name if no glyph-name
// item.name = youNameMap[item.unicode]
return item;
}
});
see test/test/js