开发者

More than one font with Cufon?

开发者 https://www.devze.com 2023-01-12 11:12 出处:网络
Is it possible to have more th开发者_StackOverflow社区an one Cufon font on a website? If so, how? Yes it is possible. Link multiple font files to page. And Invoke Cufon.replace with fontFamily attribu

Is it possible to have more th开发者_StackOverflow社区an one Cufon font on a website? If so, how?


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

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


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

精彩评论

暂无评论...
验证码 换一张
取 消