/ Published in: JavaScript
Cufon (http://cufon.shoqolate.com) font files automatically invoke Cufon.registerFont method after load. Since we cannot change files format, we should override this method so it will call our custom callback. This is useful if we want to add some custom functionality which will run after Cufon font is loaded.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var fn = Cufon.registerFont; Cufon.registerFont = function(data) { fn(data); some callback... }