More than one font with Cufon?

Is it possible to have more than one Cufon font on a website? If so, how?

+3
source share
1 answer

Yes it is possible. Link multiple font files on the page. And Invoke Cufon.replace with the fontFamily attribute. Example:

Cufon.replace('div.contactus-slogan', {
    fontFamily: "Myriad Pro"
});


Cufon.replace('div.slogan-left-content h1',  {
    fontFamily: "Myriad Pro Light"
});
+6
source

Source: https://habr.com/ru/post/1760102/


All Articles