The logo for my website is an SVG file. I use a simple initials based logo, just X & R for the logo, set in Teko font.
When using fonts in SVG, non-system fonts are forcibly replaced by the standard system fonts. 1
Since SVG supports CSS for styling, it is easier to include the font into the SVG.
To do that,
- Embed the base64-encoded font source into the SVG with a
defs
element.
- Convert the font to base64 using the Embedded Google Fonts tool and replace the
BASE_64_STRING_GOES_HERE
with the base64 string.
Footnotes
-
I had run into this issue a couple of years back for Radix Day logos. ↩