Question

Im leveraging Cufon to do font replacement within my application. I've got a couple of places where I make Ajax calls using Richfaces 4.2 (JSF2), but notice that when the page is refreshed the Cufon replacement is not applied. What is the best way to ensure that the HTML that is displayed after the call has the Cufon font replacement applied correctly?

Was it helpful?

Solution

use Cufon.refresh() function each time you are refreshing content with cufon text the details here: https://github.com/sorccu/cufon/wiki/API

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