If I TextOut a line of text everything is fine.
If I TextOut a line of text with many consecutive spaces, windows compresses the spaces. Things don't line up.
How do I turn this off?
Thank you.
Posted on 2002-12-04 00:05:32 by JOHNLOGIC
windows fonts use different x sizes for the letters

you can make use of GetTextExtentPoint32


BOOL GetTextExtentPoint32(
HDC hdc, // handle to DC
LPCTSTR lpString, // text string
int cbString, // characters in string
LPSIZE lpSize // string size
);


that should help you line things up
Posted on 2002-12-04 01:23:24 by Terab
Try a uni-spaced font. This is a common formatting problem for TT fonts.

Regards, P1
Posted on 2002-12-04 08:34:22 by Pone