WPCubed Product Support

wrong position of rotated text

Hello,

now the baseline alignment works.

The problem was on my side. My TextOut()-coordinates were not adjusted for the baseline.

Regards,

Thomas

#5 ♥ 0
4.1k Views 4 users 1 ♥ read 2 min

Hello,

i also have this problem.

Using SetTextAlign(Can.Handle, TA_LEFT + TA_BASELINE) doesn't solve it, it get's even worse. The text it shifted more than it was with our Standard-Align TA_TOP.

Regards,

Thomas

#4 ♥ 0

Bonjour,

I have the same problem.

Could you please be a bit more precise what to change to make this working?

We made no changes to our code, we simply updated from 3.x to 4.x.

Using a different PDF driver (Microsoft Print to PDF) gives the correct result.

Thanks in advance,

Kind regards

#3 ♥ 1
wpsupport

Please make sure to use the baseline alignment when you print text. This often helps.

#2 ♥ 0

When I write a vertical text (for example 90 °, using TextOut () and lfEscapement = 90*10) the writing results shifted (some point right and up) with respect to the right position. If I use lfEscapement = 0 the position is right, if I use lfEscapement = 90°, the position results shifted. If I use lfEscapement = 270° (vertical, but in the other direction) the position is right.
The same code has correct results on screen, on phisical and virtual printers. The problem appears only in PDF files created with wPDF.

I think it is a bug.

Delphi 10.3 Enterprise, wPDF 4.79

A very similar code in Delphi 6, wPDF 2.61 works properly.

Thank you

Federico.

#1 ✎ ♥ 0