Draw to canvas only after Google Web Font is loaded
问题 I am using .fillText() on a canvas, the text of which I want to be in a Google Web Font (Oswald, in my case). When the page loads, the text is drawn to canvas before the font has loaded, but obviously once the font loads the text on the canvas doesn't update, because it has already been drawn as a bitmap. How can I delay this text drawing until after the Web Font has loaded? A rectangle is also drawn to the canvas which I would still like to draw immediately on $(document).ready() . I should