d3moji icon indicating copy to clipboard operation
d3moji copied to clipboard

font-awesome svg

Open timelyportfolio opened this issue 9 years ago • 4 comments

I discovered this a couple weeks ago https://github.com/encharm/Font-Awesome-SVG-PNG, but unfortunately still does not solve the problem, since currently it seems you need something like the twemoji cdn to serve it up. It would be slow, but could just do a gh-pages branch of that repo to serve up the generated SVG.

timelyportfolio avatar May 05 '15 17:05 timelyportfolio

Oh cool!

I wonder if we could use https://rawgit.com/ for this?

mathisonian avatar May 05 '15 17:05 mathisonian

rawgit, especially the cdn version, would be an option (see FAQ), but I think the gh-pages route would work better. Want me to check with the author to see if he would like to do it? If not, it is simple enough to fork and add a branch. Still none of this would be a production solution. I wonder if it would be good to add a config option to specify a url for the svg.

timelyportfolio avatar May 05 '15 18:05 timelyportfolio

Yeah, that sounds good if you don't mind reaching out to them.

+1 for having a config for the URL, I was planning on adding that at some point anyways.

mathisonian avatar May 05 '15 18:05 mathisonian

since @encharm so nicely added a gh-pages branch, the url pattern will be

http://encharm.github.io/Font-Awesome-SVG-PNG/svg/*.svg

I'm thinking we will need to transform this to limit the viewBox.

timelyportfolio avatar May 13 '15 20:05 timelyportfolio