SVG not loading properly?
Hello!
I created a logo on illustrator and exported as an SVG. When importing onto my website, the logo's font looks completely different than what I exported. I'm assuming that the logo's font-family isn't being recognized?
How do I go about fixing this?
I'm currently loading the SVG using <img> tags, not <svg>
12 Replies
what happens if you use
<svg>
tags instead? i think i've run into something similar with inkscape when using text in an svg. it might not be converting the text to a path when you're exporting it. there is probably an "object to path" option in illustrator if that is the caseI just exported as code and still having the issue
For reference
is the text in illustrator a path?
Yeah
Excuse the formatting, just a quick c/p
that isn't a path
hmm
i've never used illustrator so i don't know if this is the right thing, but maybe try this?
https://www.youtube.com/watch?v=l4FqRPqls3w
Jamela Payne
YouTube
How To Make SVG Files From Text In Illustrator
Learn how to make simple and easy SVG files for Cricut using adobe illustrator. Learn how to work with text to create your own designs.
Grab this file for free. https://colormecrafty.net/custom-doormat-using-cricut-or-silhouette-stencils/
Adobe Photoshop and Illustrator http://bit.ly/allappsadobe
My SVG and file shop https://by-pink.com/shop...
if you select all your logo and press cmd shift o, it will make your design outline. and you're good to go.
Your
text
element has font-family: TheHometown, 'The Hometown';
declared in the SVG's style tag. If your webpage isn't loading that font you won't see the font. You either need to turn it into a stroke/outline/line as Milan suggested, export as a PNG, or link the correct font in your HTML.