Question

I am using jquery to print the date (month) in to a div on a static page, and want to use Cufon to style the font for that date (I have to use Cufon due to the license of the font.) Even though I have the div before the scripts, and the date script before the cufon script, it won't apply the font to the date. It works everywhere else on the page. Can anybody tell me why this is happening, and if there is a solution?

Was it helpful?

Solution

One thing I can say with what you made us assume is, each and every second, I assume that some DIV's html contents get updated. So, in that update request, add this code:

Cufon.refresh();

Hopefully it should work, if not, please try posting some code so that we can give you better answers. :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top