Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Doesn't check loading of several fonts with same name but different font-weights #13
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