I'm trying to get the icons from FontAwesome to work in my SVG. And as I know the tag which is normally used, is not supported by SVG. So how would I get the icons to be displayed?
Some of the code:
<g id="symbolsContainer">
<symbol class="icon icon-" id="icon-1" viewBox="0 0 40 40">
<text fill="#222" x="50%" y="50%" dy=".3em" text-anchor="middle" font-size="1.2em"></text>
</symbol>
</g>
Stylesheet:
svg text {
font-family: FontAwesome;
}
When I use  ; to display it, it only shows a little error square. Is that because FontAwesome isn't correctly included?
I've tried to use <path>
, and it worked, but the needed icons were not to be found.