Here''s an easier way. Just open up MS Paint and select the font tool. Select a fixed-width font (like Courier-New), and type in "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" and whatever else letters you want. Save the bitmap, and calculations will be a helluva lot easier. Then I''d do this. Create an int array with 256 spaces. Then write some function that fills in the array with the offset on the bitmap to each letter. For example, I think the capital letter ''A'' has an ascii value of 96. And let''s say the letter is the 27th spot on the bitmap, because you put lower case letters in there first. And just because, we''ll say the letters are 6 pixels wide in the bitmap. So the capital A will be at pixel ((27 - 1) * 6) = 156. The function that you write will assign FontArray[96] = 156; Or better yet, it should say FontArray[''A''] = 156; And FontArray[''B''] = 162; Get it? Then, to figure out what the x-offset on the bitmap is for any letter, you just look it up in FontArray[letter]. Cool, huh? But you have to do it your own way, with each letter being so many pixels wide, which letters are in the bitmap, which order the letters in the bitmap are, etc. Good luck!
E-mail me if you didn''t fully understand that.
ColdfireV