Looking back at stackoverflow and google for ways to solve this problem, I had enough luck in the solution.
What happens is font font does not load at the right time. I have html5 canvas and javascript where I draw some simple circles with fill text inside them. Now the circles are drawn, but the text itself is the wrong font.
I assume the reason is that the font is loaded last and it just selects the default font.
Now I have a question ... is there a way so that I can delay the canvas objects drawn before the font was loaded? This way, the font will be ready for use, and it will assign the correct fonts to the canvas objects.
I should point out that I have an index.php file that includes my other php file where javascript and canvas are actually drawn.
source share