سؤال

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?

هل كانت مفيدة؟

المحلول

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top