I'm currently trying to write the font engine for my game.
Right now i've got a CFont class, which loads a bitmap into a CSprite class. My sprite class splits up the bitmap into frames and i can call up anyframe when i need it, so that part of my font engine is settled. The problem that i have is with the part just before drawing. the CFont class has a function called DrawString( char* string, x, y, destination_surface ). I've got it to call strlen() to get the size, then there is a for loop that will send character by character to the function DrawChar( char, x, y, dest ).
And here is where my problem is right now I'm using a case statement to parse the character then switch to the corresponding frame in the bitmap. Am I right to do this? Am I right to pass strings like that? And how am I sure that I've got all the characters in the character set in my case statment? Which set of character codes should I use ASCII or ANSI? I'm using ANSI right now, but the chart in MSDN does not give me the same characters as I do when I type alt-### And how would I implement colour changing?
I know some of these questions may seem a bit basic and some may have been answered before but right now I'm totally lost here.
Thanks in advanced