wrong position of rotated text

  • 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.

    Einmal editiert, zuletzt von federico (18. Juni 2021 um 15:51) aus folgendem Grund: small typing errors

  • 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

  • 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