Page 1 of 1

Another win 98 text anomoly

Posted: Wed Jun 22, 2005 9:42 pm
by ken66
Please see the attached PDF.

Notice the first string drawn seems to have each character drawn on top of each other. The second string is drawn as expected. This happens on windows 98 but both strings are drawn ok on windows xp.

I have attached the test VC6 project which was used to create this PDF.

Posted: Thu Jun 23, 2005 4:45 pm
by John - Tracker Supp

Please check your code order more carefully - the issue is there - you need to make changes to the mapping modes before selecting the font into the device content.

i.e. move the line:

CFont* oldfnt = dc.SelectObject(&fnt);