sunflowerdeath / webfonts-generator

Generator of webfonts from svg icons
The Unlicense
271 stars 152 forks source link

Allowing format specific options #6

Closed mrbar42 closed 8 years ago

mrbar42 commented 8 years ago

There is a use case where ts option needs to be passed down. at the moment there is no way to pass options to the actual font generation module.

the PR adds a formatOptions object that allows passing arbitrary options to the specific format generator.

with the additions, the usage would be as follows:

var webfontsGenerator = require('webfonts-generator')

webfontsGenerator({
  formatOptions: {
    // options to pass specifically to the ttf generator
    ttf: {
        ts: 1451512800000
    }
  }
}, function(error, result) {})
sunflowerdeath commented 8 years ago

It looks useful. Thank you for improvement.

mrbar42 commented 8 years ago

can you by any chance publish this to npm as a patch or a minor?

sunflowerdeath commented 8 years ago

im working on it right now )