Commit 4d33a8a2 authored by Thibaut Broggi's avatar Thibaut Broggi

Fix rendering of text before font load (close #16)

parent 7f70fc3b
Pipeline #1665 passed with stage
in 41 seconds
...@@ -181,9 +181,9 @@ window.addEventListener('load', function() { ...@@ -181,9 +181,9 @@ window.addEventListener('load', function() {
} }
// Update canvas // Update canvas
document.fonts.ready.then(function() { document.fonts.onloadingdone = function(fontFaceSetEvent) {
draw(); draw();
}); }
}); });
let randomElement = function(selector) { let randomElement = function(selector) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment