Original Post
I figured this is the AngelCode forum, so it probably covers the tools as well as AngelScript. I have written a loader and renderer for the fonts produced by BMFont. All is working well in that the fonts are displaying on the screen. What I cannot work out is how to use the xoffset and yoffset fields from the .fnt file. If I add or subtract the yoffset from the y coordinate used to display the character, the characters are not displayed in line (they seem to be at random heights). What is the meaning of the offset values and how do I use them? I am currently looking at 'guppy' with the g, p and y characters sitting high so their descenders are in line with the bottom of the u. Is there some sample code or explanation somewhere that I could look at? There is also a bug in BMFont in how the xadvance field is written to the .fnt file in regards to the antialias level. The xadvance field is incorrectly multiplied by the antialias level. If I have the antialias set to 2, then I have to divide the xadvance value by 2 to get the text spaced correctly. Likewise for 3 and 4 (have to divide by 3 and 4 to get the correct value). Otherwise I'm getting some nice results from BMFont. Thanks for releasing it.