- This topic is empty.
Viewing 10 posts - 1 through 10 (of 10 total)
Viewing 10 posts - 1 through 10 (of 10 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hey everyone. I’m using a condensed font through Typekit. I’m trying to come up with a decent looking fallback solution in case Typekit doesn’t load or if I end my subscription to it. I can use an @fontface condensed font as a fallback, but then that’s adding to my page weight and will be mostly redundant. I don’t mind falling back to a sans-serif font but if I do that then I’d need to reduce the font-size for the fallback font. Is that possible to do? I’ve checked out this page: http://blog.typekit.com/category/font-events/ and have tried out a few things but to no avail.
I guess I’m asking for opinions. Would you just take the page weight hit and add a condensed @fontface fallback font? Or would you fallback to a “web safe” font and adjust the font-size if Typekit fails/isn’t active anymore?
Any ideas?
Your font stack doesn’t have to be small. I would go from your fontface font, to the actual font name (on your local machine), to a similar font that people might have, and then to websafe.
Hey doc, thanks for the reply. If I’m using an @fontface font as a fallback is that font loaded even if it isn’t used? Or is it only loaded if it’s “fallen back to”?
That’s a very good question. I think you’d have to do some research there!
@JohnnyB to simply test: Use 2 different font files, 1 primary and the other for fallback. Then, just check with web inspector (network tab) to see if they both load.
I guess I’ll give it a go then and see what happens! Thanks for the help guys.
Only IE downloads the font if it isn’t being used. I would recommend reading this article for more information: http://www.stevesouders.com/blog/2009/10/13/font-face-and-performance/
Awesome, that’s an interesting read, thanks @joshuanhibbert.
No worries!