Posted By

luxwan13 on 11/18/13


Tagged

cufon


Versions (?)

Change Cufon font size on Window resize


 / Published in: PHP
 

URL: http://www.seegeekdadrun.com/coding/change-cufon-font-size-on-browser-resize/

Change Cufon font size on Window resize See My Mummy Loves site for a working example

  1. jQuery(function($) {
  2. /*
  3. * Cufon
  4. */
  5. // landing page
  6. if ( $( "body.landing" ).length > 0 ) {
  7. Cufon.replace('.site-title', { fontFamily: 'DidotLTStd-Bold' });
  8. // other pages
  9. } else {
  10. Cufon.replace('.site-title a', { fontFamily: 'DidotLTStd-Bold' });
  11. }
  12. // refresh Cufon on window resize
  13. $(window).resize(function(){
  14. Cufon.refresh();
  15. });
  16. });

Report this snippet  

You need to login to post a comment.