If you are using Font4.pas to render out the Font Studio fonts (that procedure above comes from / was derived from Font4.pas) then it will draw the bitmap font characters upside down by default because of this line:
Code:
const
USE_INVERTED = true; //Use this if you use inverted GL coordinates
//where (0,0) is the top left corner.
I see you've just fixed it manually, but setting that to false may have fixed it too.
Bookmarks