Join GitHub today
Doesn't check loading of several fonts with same name but different font-weights #13
added a commit
Jan 1, 2015
Hm, I spent quite a bit of time trying to pass the loaded font-weight in as an argument to the success callback, but I don’t think that’s going to work. It’s trivial to do with the CSS Font Loading API but not with the fallback behavior. I’m open to ideas!
Consider the scenarios:
So, in the
Of note, this does not work around faux bolding. I think this is OK-ish. Open to suggestions, of course.
I haven’t decided yet if this is worth merging into master (it’s about a 20% growth in GZIP file size), but it’s available for use in that branch.
Yea, this is a known problem. The Web Font Loader has the same issue. I think the only work-around is