-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FontDetect failing in IE #17
Comments
An addition to this, on a whim I tried this in FF Really need your help on this, this seems to be the only non-hacky solution I could find but it has to work :) |
Some testing i ran against 3 font checks, Entypo is the font we're searching for. All tests run from the console and on the same page:
|
Hi synergyauto, I did a quick check with Chrome 43, Safari 6.2.6, FF 37 & 38 on a Mac, and IE 10 in Win 7/Parallels, and it did detect an existing external font for me. But Firefox did indeed give a false positive for a non-existent font. (FF's problem is probably the same one that causes Issue #15.) I tested it by going to www.atomicjetpacks.com and testing for Arial, Oxygen (one of the fonts that the website uses, which is loaded from Google Fonts), and "x". I'll try to test it out with Entypo loaded this week or next. In the meantime, do you know which filetype of Entypo is being called, i.e. ttf, woff, etc.? Is it being hosted locally or somewhere else? Also, does Chrome give the correct answer for you if you test it with another external font? |
Jennifer, Entypo loads ttf, woff, svg and eot files. I suppose they're all there for fallbacks of some sort. As for your 2nd question, this site is locked down so it's rather hard to insert a new font load into it. In the end, this project has to handle IE browsers that have font download disabled via security and replace a css file with another if that's the situation. So IE not detecting Entypo seems to be the issue here that needs to be solved. It responds appropriately for default fonts and made up fonts. |
Ah well, management could not wait around for a solution so we're forced to go down another avenue. Take care Jennifer. |
I also seem to be having an issue where isFontLoaded is always false in IE11, unless I load a font a second time. Trying to debug my code to see if there's something I'm doing that's causing this. The font does load on the first run, but isFontLoaded keeps returning false. EDIT: Looks like this was an issue with me blocking the thread with a while loop so that the font wouldn't finish loading. Switched to calling isFontLoaded with setTimeout, and it's working perfectly in IE11. |
Hi Jennifer,
Outstanding work on this library!
One issue we're seeing is in this code in IE 11
FontDetect.isFontLoaded('FontAwesome')
This always returns false, no matter how the browser security is setup for font downloads.
Conversely, this always returns true
FontDetect.isFontLoaded('Trebuchet MS')
When I switch over to Firefox or chrome and run
FontDetect.isFontLoaded('FontAwesome')
It returns true, so the issue seems to only appear in IE.
Any thoughts on this?
The text was updated successfully, but these errors were encountered: