I have a logo that I made in SVG
, in file .svg
external, which uses a text with the name of the company, whose source is Open Sans Light
.
On my machine it works normally, due to the fact that I have the font installed.
I have this source on my site through Google Fonts , however, I believe that because SVG is being loaded externally through the background-image
property, that font is not working.
How do I declare this external source within SVG? Is there any way to do this ...
For example, how could I do this in SVG below?
<svg width="200" height="200">
<circle cx="100" cy="100" r="80" stroke="green" stroke-width="4" fill="yellow" />
<text y="105" x="85" style="font-family: 'Open Sans'; font-size: 20px; font-weight: bold;">
<tspan>Text</tspan>
</text>
</svg>
Note : Although my example is in HTML, I'm using an external SVG file.