Code: Select all
For Each Character:
cursorx = cursorx + character.A
render(character at cursorx);
cursorx = cursorx + character.C;
I would have thought the character Width needs to be incorporated. However I painfully found that the "Width" that you list in your exported files refers not to the width of the character, but the width of the glyph as rendered into the font bitmap. You can see the width when you turn on the guidelines:
I imagined my code to be more like this:
Code: Select all
For Each Character:
cursorx = cursorx + character.A
render(character at cursorx);
cursorx = cursorx + character.width + character.C;
It seems odd to me that you only consider A and C and not the width.