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 fishfang

Simple Question: How do I draw the euro currency symbol?

I tried to generate a font png using the font-tool, but the euro symbol is not included as it is at a pretty high unicode position...

1 decade ago by Joncom

You need to:
1) Find a font that has the euro-currency symbol in it.
2) Convert the font to an image file for ImpactJS to use.

Here's a tool that can convert fonts into images.

Make sure you put the value of "last char" high enough that the symbol is not cut-out.
Because the default 127 chars only really includes the most common ones.

1 decade ago by fishfang

Jeah, but that's the problem, the euro symbol is in the unicode table at such a high position, that the font tool crashes...

1 decade ago by Joncom

So you're able to get the tool to work for lower numbers?
High how is the number?

10 years ago by FelipeBudinich

What I did to handle unusual symbols on a font, is that I opened the font image in Photoshop, then I just replaced a symbol I wasn't using for a symbol I wanted.

Say I replace "$" with "¥" on the font image, then when I do
this.font.draw("I have lots of $", x, y);

It reads "I have lots of ¥" on the game canvas.
Page 1 of 1
« first « previous next › last »