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.
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?
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 »