Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide SVG icon to be used in SVG element as an alternative of Font Icon #10352

Closed
SuperPat45 opened this issue Dec 12, 2016 · 6 comments
Closed
Milestone

Comments

@SuperPat45
Copy link

Hi,

I found two interesting blog posts:
https://cloudfour.com/thinks/seriously-dont-use-icon-fonts/
https://css-tricks.com/icon-fonts-vs-svg/

It may be wonderful if fontawesome has ability to provide SVG icons to be used in SVG element as an alternative of the classic Font Icon.
Example:
<svg class="icon"><use xlink:href="path/to/icons.svg#search"/></svg>

@SuperPat45 SuperPat45 changed the title Provide SVG icon to be used in SVG element, and not as FontIcon Provide SVG icon to be used in SVG element as an alternative of Font Icon Dec 12, 2016
@tagliala
Copy link
Member

Take a look at this repo: https://github.com/encharm/Font-Awesome-SVG-PNG

@SuperPat45
Copy link
Author

SuperPat45 commented Dec 12, 2016

Take a look at this repo: https://github.com/encharm/Font-Awesome-SVG-PNG

This project is a good start but it seem to generate individual SVG files only... and I prefer my page does not download multiple files for icons.

@Crissov
Copy link

Crissov commented Dec 15, 2016

It’s quite trivial to convert fonts/fontawesome-webfont.svg to a proper (non-font) SVG file. SVG Fonts have been dropped from SVG 2.0 anyway.

@tagliala
Copy link
Member

@SuperPat45

there should be an .svg sprite on that repo: https://github.com/encharm/Font-Awesome-SVG-PNG/blob/master/sprites.svg

Unfortunately the repo is out of date, and I cannot submit a PR there at the moment

@dominykas @Rush could you please help us?

@Crissov
Copy link

Crissov commented Jun 16, 2019

Single-file SVGs are now available in /sprites/, so this issue should be closed. @tagliala

@tagliala tagliala added this to the 5.0.0 milestone Jun 16, 2019
@tagliala
Copy link
Member

@Crissov thanks for the heads up

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

No branches or pull requests

3 participants