Closed (fixed)
Project:
@font-your-face
Version:
7.x-2.x-dev
Component:
Code (general)
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Jul 2011 at 10:37 UTC
Updated:
16 Apr 2012 at 00:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
djg_tram commentedHere is the modified code in local_fonts_add_fontface_submit():
This separates the IE-specific font from the rest.
Comment #2
sreynen commentedThis isn't really a bug in the module; it's a feature request. There's a bug in IE, and it sounds like there's also a bug in Ubercart. It seems pretty crazy to me that Ubercart would start a new checkout session based on a 404. If that's happening, you should definitely open an issue under the Ubercart project. Also, I'm not even clear on why those requests would be 404. Those files are there, aren't they? I thought the IE bug was just that it downloads files it can't use, not that it can't download the files.
As far as the CSS syntax, the syntax you linked is pretty old. There have been a few revisions since then, one of which is currently being output. I described here why I chose to use a version of the syntax that doesn't rely on CSS hacks to work around IE bugs:
http://drupal.org/node/930066#comment-4122330
That said, if someone wants to do a patch that makes this an option, I'll commit it. Or if someone at Microsoft wants to pay me, I'll write the patch myself. But I'm not very inclined to spend any more of my free time than I already do dealing with IE bugs.
Comment #3
sreynen commentedIf anyone wants to do this, it should happen first in the 7.x-2.x branch.
Comment #4
djg_tram commentedIt's a bug in IE all right but not in Ubercart, there are security reasons quoted behind this behavior. No, the problem with IE is that its HTTP requests are malformed and will not download the fonts. I do understand your frustration about supporting IE, I feel the same way, yet we have to... :-) That modification, even if not rolled into a patch, seems to work for me all right.
When I move to D7 (pretty much depends on Ubercart going past beta stage on D7), I'll re-check the issue and if there will be anything left to patch in this area, I will.
Comment #5
sreynen commentedTo be clear, any patch here needs to make this syntax optional, so when the hack required to get IE to work ends up breaking behavior in some standards-compliant browser, users can just turn it off rather than needing to update the code again.
Comment #6
sreynen commentedMarking this as postponed until someone submits a patch.
Comment #7
Bitvark commentedHello,
facing same issue, I've developed two patch: one for drupal 6, one for drupal 7.
They provide a checkbox before importing a local font to choose IE-Friendly Syntax.
I've used Fontspring Extra Bulletproofiness Syntax (February 21, 2011):
http://www.fontspring.com/blog/further-hardening-of-the-bulletproof-syntax
Patches have to be applied to local_fonts.module in the fontyourface/modules/local_fonts folder.
Hope it'll be useful.
bye
Comment #9
Bitvark commented#7: local_fonts-7.2-iefix-1229786-7.patch queued for re-testing.
Comment #11
Bitvark commentedHello,
I've had some problem with the testbot for the sub-folder... I'm sorry for this
Here is the right D7 one.
Bye
Comment #12
Bitvark commentedAnd here is the D6 patch.
Comment #13
sreynen commentedThanks Bitvark. I'll try to review these soon.
Comment #14
sreynen commentedThe latest dev uses a more IE-friendly syntax (which is also more Android-friendly), so I think this should no longer be an issue.
Comment #15.0
(not verified) commentedFollow-up