YannBergonzat

Untitled

Oct 25th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var img = document.createElement("image");
  2.  
  3. img.onerror = function () {
  4.     alert("Font is loaded");
  5. }
  6.  
  7. img.src = "myFont.ttf";
Advertisement
Add Comment
Please, Sign In to add comment