Skip to content

Extract all glyphs in the svg font to separate svg icon files

License

Notifications You must be signed in to change notification settings

cenfun/svg-font-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svg-font-extractor

Extract all glyphs in the svg font to separate svg icon files

Install

npm i svg-font-extractor

Usage

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

Changelog

About

Extract all glyphs in the svg font to separate svg icon files

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published