API: DrawText() problem
Posted on 2000-03-23
When using the API DrawText() function for text output
DrawText(AHandle, '543210', -1, ADrawRect, DT_RIGHT or DTVCenter or DT_SingleLine)
on some printers (mainly newer HP drivers) the last digit is missing in printout. On other printers everything works just fine. The DrawRect is much wider than the string. Putting an additional space behind the last digit always solves the problem.
The original Windows HP Laserjet Series II driver never shows this behaviour.
Does anybody know the problem?
Thanks a lot, Roadrunner
(I have asked this Q before in the Delphi-Area)