font-blast icon indicating copy to clipboard operation
font-blast copied to clipboard

Support buffer input?

Open breezewish opened this issue 8 years ago • 3 comments

Current library API only supports file:

fontBlast('font-awesome.svg', 'fa-icons');

It would be nice to support buffer input :)

breezewish avatar Feb 21 '17 13:02 breezewish

Thanks for the thought!

I thought this library would be used once to generate files from relatively small SVG fonts. The advantage of buffer inputs seems a bit unclear for me - could you please share your use-case? Thanks!

eugene1g avatar Mar 22 '17 20:03 eugene1g

Hi, I was writing a script to download and extract icons from fontello.com. Currently I feed a temp file to this interface to extract svgs.

breezewish avatar Mar 24 '17 09:03 breezewish

Ah I see how this could be limiting. I'll try to add that feature in shortly.

On a related topic, here are undocumented examples of how I did the same thing last time (also through a temp file) https://github.com/eugene1g/font-blast-examples/blob/master/popular-fonts.js

eugene1g avatar Mar 24 '17 15:03 eugene1g