vilya / Invaders

My entry for Ludum Dare #24
0 stars 0 forks source link

Sometimes the aliens are displayed as letters instead of shapes #3

Open vilya opened 12 years ago

vilya commented 12 years ago

It seems like IE 10 either doesn't support the @font-face css attribute, or doesn't support the font format for the invaders. Either way, apparently it falls back to using a default font, which will display the aliens as letters instead of shapes.

vilya commented 12 years ago

I've seen this happen once or twice on Chrome too. I think it's because sometimes the custom font hasn't finished loading when the game starts. A hard-refresh (Ctrl+F5) seems to get rid of the problem.

The proper solution to this would (probably) be to add some asset loading code, if it is actually possible to load custom fonts through javascript.

vilya commented 12 years ago

Changed the title to reflect the fact that it's not just IE 10 which has this problem.