Fix Cufón in IE9 Beta

Update

Cufon have now released the latest version with IE9 support. If you’re still having troubles then make sure you upgrade to the latest version . If for whatever reason you’d prefer not to, the below fix should help you still.

————————————————————————————-

Just a quick one, after getting the new TD site working and released, I download the Internet Explorer 9 beta and saw that cufón had started to render completely blank. The cufón guys have been quick to get a fix out, and a new release is coming soon, but if you need a quick fix then here’s some info:

<!–[if gte IE 9]>

<script type=”text/javascript”>

Cufon.set(‘engine’, ‘canvas’);

</script>

<![endif]–>

Place the above in your HTML before all the Cufon.replace() calls.

Alternatively you can force IE9 to behave like IE8 (or 7):

<meta http-equiv=”X-UA-Compatible” content=”IE=8″ />

<meta http-equiv=”X-UA-Compatible” content=”IE=7″ />

BACK

6 Responses to Fix Cufón in IE9 Beta

  1. Matt says:

    I totally just used this on my site. +1 Sam

  2. Matt says:

    Quick update – the latest version of cufon-yui.js (always available at http://github.com/sorccu/cufon/raw/master/js/cufon.js) removes the need for this fix. I just gave it a test and it works in both IE8 and IE9 modes. Hoorah!

  3. Sam says:

    Excellent, post updated.

  4. Pablo says:

    Thanks men, very usefull

  5. Tim says:

    Works GREAT!!

    I love you…in a good way.

  6. lambros says:

    ohh you just save my life!! :P

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code lang=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" extra="">