We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi all. Can't figure this one out. I'm setting an interval to wait for fonts to load before using them. However, text() is throwing an error - unless the font is loaded in preload(). Any idea why the error?
Simple example here: http://dfilm.com/lucs/test_font/fontest.html
If you move the loadFont() statements up to preload(), it works fine. I don't want to load the fonts in preload so that the page loads as quickly as possible.
Answers
true
inside the callback.Sorry, I'm not following. Are you saying that the loadFont() callback is called before the font is actually loaded?
Is there another way to check if the resource is loaded, other than by using its callback?
Untested: treat as pseudocode
Hey, I tried your code above and discovered something very interesting. It errors out when preload() is defined - but works fine if preload() is removed. This a bug?