#1 2022-04-12 12:38:02

ArnoB
Member
Registered: 2022-04-12
Posts: 1

Bug in SynPdf TPdfCanvas.UnicodeTextWidth

Right text alignment is not working correct and i found out that it is because a bug in the procedure UnicodeTextWidth

Sourcecode on line 7273 in SynPdf.pas is currently:

      while i < length(Ansi) do begin // loop is MBCS ready

and need to be changed to:

      while i <= length(Ansi) do begin // loop is MBCS ready

Offline

#2 2022-04-12 13:53:26

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 13,504
Website

Re: Bug in SynPdf TPdfCanvas.UnicodeTextWidth

You are right.

It should be fixed now.

Offline

Board footer

Powered by FluxBB