Seen quite a few ppl asking about this sooo figured I’d throw it out there.
If you aren’t aware, with IE9 cufon doesn’t render anything at all, not even the actual text. I know beta software is beta, but Microsoft…
Fix:
<!--[if gte IE 9]>
<script type="text/javascript">
Cufon.set('engine', 'canvas');
</script>
<![endif]-->
or add
<meta content="IE=8" http-equiv="X-UA-Compatible" />
or download the latest nightly and replace your old cufon-yui.js with it.
- Envato Staff
- Reviewer
- Community Moderator
- Venezuela
- Has been a member for 4-5 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Microlancer Beta Tester
- Sold between 10 000 and 50 000 dollars
- Exclusive Author
You’re the man! Thanks mate.
- Bought between 10 and 49 items
- Exclusive Author
- Has been a member for 5-6 years
- Referred between 1 and 9 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 5 000 and 10 000 dollars
- Uruguay
Oh! now i understand, for the microsof guys, “beta” means:
“Be carefull, this is what we do, and this are the new bugs, so, start learning how to fix them!!! But we promise to fix them for the next beta10”
Great work. It now works great.
Oh! now i understand, for the microsof guys, “beta” means: “Be carefull, this is what we do, and this are the new bugs, so, start learning how to fix them!!! But we promise to fix them for the next beta10”
No they will be fixed maybe in IE12 or so.
Nice to see that IE9 is turning out to be every other version before it, lol!
w00t, didn’t know about that.
I’m not installing IE9 , I’m waiting for IE X 
So they’ve brought new bugs now? Microsoft really knows how to do their job!
They’re bringing html5 and css3 support. So they thought it’s useless to keep js
- Attended a Community Meetup
- Author had a File in an Envato Bundle
- Author was Featured
- Bought between 1 and 9 items
- Contributed a Tutorial to a Tuts+ Site
- Exclusive Author
- Has been a member for 4-5 years
- Item was Featured
So they’ve brought new bugs now? Microsoft really knows how to do their job!
It’s a beta. I wouldn’t bother making changes to your sites until they get to RC2 or later.
A Microsoft beta is different than other companies that try and find as many bugs as possible before the beta is released. Microsoft let’s the community do that for them. Their beta just means they finished working on the core and primary engines. Now need us to do their job for them, finding the little bugs that are easy to fix.
Hi folks,
Just a quick note to explain more on why older (pre 1.09i) versions of Cufon don’t work correctly with IE9 .
The library depended on legacy, non-standard IE behavior fixed in IE9 . The IE9 behavior is correct (as in, IE9 now behaves like all other browsers) and won’t change so we’ve worked with the Cufon authors on a fix for the library. And as we find sites affected by this, we contact them to let them know there’s an updated version of Cufon to use.
The gory details…
Cufon chooses an “engine” for rendering in registerEngine:
Cufon.registerEngine("vml", (function () {
if (!document.namespaces) { //<------ browser detection
return
}
// build engine...
}
The check for document.namespaces is effectively an “if IE” check. IE supports document.namespaces, so the ‘vml’ engine is used instead of the ‘canvas’ engine. IE9 supports VML so that alone isn’t the problem.
However, the ‘vml’ engine depends on legacy IE behavior in two places:
- Cufon uses elem.unknownAttr = ‘value’ to set a unknown attribute, e.g.
S.stroked = "f"; S.coordsize = m; S.coordorigin = H = (q - o) + "," + p; S.path = (Z.d ? "m" + Z.d + "xe" : "") + "m" + H + e; S.fillcolor = a;Unlike IE8 , IE9 treats these as script expando properties and not content attributes. If you replace these assignments with the standards-basedsetAttribute(A,, it will work correctly.
- Cufon omits the unit ‘px’ in setting style properties, like ‘width’ and ‘height’. Like other browsers, IE9 requires units on length values without unit.
John Hrvatin Program Manager, Internet Explorer
