Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Add support for passing multiple glyph codes for a single icon #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

macku
Copy link

@macku macku commented Dec 13, 2017

The svgicons2svgfont tool allows you to pass the multiple glyph codes for the same icon.

Example from their page:

// Multiple unicode values are possible
const glyph2 = fs.createReadStream('icons/icon1.svg');
glyph2.metadata = {
  unicode: ['\uE002', '\uEA02'],
  name: 'icon2'
};

I wanted to add the same support to webfonts-generator.

The changes are backwards compatible, so as a user of this library you don't need to change anything - no breaking changes.

@macku
Copy link
Author

macku commented Dec 13, 2017

@sunflowerdeath: Would you mind reviewing this? 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant