I need to refresh Cufon fonts after getting AJAX data. Unfortunately simple Cufon.refresh() don`t work in IE8. Debugger says, tah the line 1191
sStyle.width = roundedShapeWidth;
has Invalid argument.
How to fix it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I had the same problem. Not only in Cufon.Refresh but also when Cufon.Now occured. And not only in IE8, but in IE7, IE6 and even in IE9PP. I noticed that I use this code for replecament:
The (‘.cufon’,{hover: true}); part was the one which generated the error. I spent two days to find out, how it could raise an error…
I opened CSS, looked for .cufon sytling. There was no .cufon in CSS. And cufon didn’t inherit styles in IE series, insted an error occured.
So I added this to my CSS:
and error went away.
(Using Cufon 1.09)