3 ms·
You are forgetting that you can't AFAIK embed custom fonts so using them exposes you to the different way OS handle font-weight, font-face and friends. Soon the
by p0nce 10y ago
You are forgetting that you can't AFAIK embed custom fonts so using them exposes you to the different way OS handle font-weight, font-face and friends. Soon the only programs able to open SVG will be the browsers.
- aidos 10y agoLooking at the SVG2 spec it seems that support of embedded fonts is mandatory [1]. I'm not sure about the story in SVG. It's been supported wherever I've needed it and when parsing svg files myself I extract the fonts (which is easy enough with a simple grep / cut) [1] http://www.w3.org/TR/SVG2/styling.html#RequiredCSSFeatures http://www.w3.org/TR/SVG2/styling.html#RequiredCSSFeatures
- p0nce 10y agoI've needed it in Adobe Illustrator SVG import, and did not wanted to exercise such CSS stuff. Now that I think of it, it may actually work.
- aidos 10y agoNot sure what support is like in illustrator but the generation is super simple. You can base64 the font and embed it inline in a style tag.