View Full Version : Bitmap Font Text Line Breaking

03-02-2012, 07:54 AM
I'm trying to do line breaks on every #13#10 found in the text (I use Delphi) drawn with Bitmap Font. The problem is, if I increase the RasterPos.Y by the Font.Height to line break, it will be fine in 2D but not in 3D, since it's a Bitmap Font (it always has same size in any 2D/3D position) and not an Outline Font. So I need some help on putting the text in the right position.
Thanks in advance.

03-02-2012, 08:24 AM
Greetings fellow Delphi programmer.
Instead of rasterpos, perhaps use glTranslatef instead (use glpushmatrix and glpopmatrix between rendering calls).