galaxy001 / canvas-text

Automatically exported from code.google.com/p/canvas-text
MIT License
0 stars 0 forks source link

Font faces not loading unless line commented out #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Custom typeface font faces are not loading unless I comment out line 73 (the 
dummy loadFace function)

This is in all the latest browsers on osx (safari, chrome, ff)

Can you explain what this snippet on line 73 is supposed to do?  as far as I 
can tell font faces will never be loaded in any capable browser so obviously I 
am missing something here.

// If the text functions are already here or if on the iPhone (fillText exists) 
: nothing to do !
if (proto.fillText && !ctxt.options.reimplement && 
!/iphone/i.test(navigator.userAgent)) {
// This property is needed, when including the font face files
return window._typeface_js = {loadFace: function(){}};  // this has to be 
commented out to work
}

Original issue reported on code.google.com by yas...@urbanlotus.com on 26 Jan 2013 at 4:44