Game Score - Fixed Width Numbers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • serdar
    New Member
    • Nov 2008
    • 88

    Game Score - Fixed Width Numbers

    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)
  • serdar
    New Member
    • Nov 2008
    • 88

    #2
    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.

    Comment

    • serdar
      New Member
      • Nov 2008
      • 88

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

      Comment

      Working...