WebFontConfig = {
  custom: { families: [ 'GillSansWB-Bold', 'GillSansBook'], urls: ['/resources/fonts/gillsanswb-bold.css', '/resources/fonts/gillsans.css'] },
  fontactive: function(fontFamily, fontDescription) {
    // Has a slight delay to fix a weird issue of IE not updating in time.
      if($('#tshirt_custom_text1') && $('#tshirt_custom_text1').length) { 
 		      window.setTimeout(function() { 
 		         VR.TSHIRT.autofit('#line1', $('#tshirt_custom_text1').val()); 
 		         VR.TSHIRT.autofit('#line2', $('#tshirt_custom_text2').val()); 
 		         $('#tshirt-preview div').fadeTo('slow', 1.0); 
 		      }, 500); 
 		    } 
 		  } 
};
(function() {
  var wf = document.createElement('script');
  wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
      '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
  wf.type = 'text/javascript';
  wf.async = 'true';
  var s = document.getElementsByTagName('script')[0];
  s.parentNode.insertBefore(wf, s);
})();

