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() {
}
// Update canvas
document.fonts.ready.then(function() {
document.fonts.onloadingdone = function(fontFaceSetEvent) {
draw();
});
}
});
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