Connecting Tech Pros Worldwide Help | Site Map

Game Score - Fixed Width Numbers

Member
 
Join Date: Nov 2008
Posts: 80
#1: Jan 21 '09
Hi,

I'm designing a flash game and I have a text field to display the score as:

000000

I want to use a specific pixel font to display it. The only problem about this particular font is the width of figure 1 is not equal to other figures.

So these two scores have different widths for instance (they will look aligned in this thread though):

000000
000010

There are lots of solutions come to my mind but all are a little bit tricky, what would you do if you really want to keep using this particular font for the score field?

(I don't have Fontographer or FontLab which would be the best tool to solve it by redesigning the figure 1 or adjusting kerning)
Member
 
Join Date: Nov 2008
Posts: 80
#2: Jan 21 '09

re: Game Score - Fixed Width Numbers


Currently my preferred solution is to use a seperate text field for every digit (with centered text and distributed in equal distance) and doing some simple arithmetic to display each digit of the score in a single field.
Member
 
Join Date: Nov 2008
Posts: 80
#3: Jan 22 '09

re: Game Score - Fixed Width Numbers


FYI, I've installed a trial version of FontCreator and solved the issue by redesigning the figure 1 in the font.
Reply


Similar Flash / Actionscript bytes