Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by svenanders

Anyone have any experience with using retina fonts in Ejecta? My builds does not display anything if I add a myfont@2x.png in addition to myfont.png.

1 decade ago by Graphikos

ig.Font simply won't work with ejecta. The way that it determines the characters will fail when scaled.

The alternative is to just use canvas API for text. If you want to use the same font with a web-based version you can use CSS and font-face.

ctx.font = "22pt Avenir-Black";
ctx.textAlign = 'left';
ctx.fillStyle = '#ffffff';
ctx.fillText("Game Over!", 15, 15);

1 decade ago by svenanders

Nice, thanks a lot!
Page 1 of 1
« first « previous next › last »