http://www.users.on.net/~sly/images/bfauto3.jpg
shows the results of using BMFont and the pseudo code provided with it.

No code page/encoding issues. No malformed TTF issues. Works the same everywhere. Works with proportional fonts as well as monospaced. Also works with fonts that have overhangs.

It is also how 99% of commercial games do fonts.