[reportlab-users] Center align emoji's png images inside Paragraph

Robin Becker robin at reportlab.com
Wed Jul 15 12:52:59 EDT 2015

On 15/07/2015 16:50, Kaviraj Kanagaraj wrote:
> Yea you are right thats the problem. But If you look closely except the
> first page none of them are center aligned correctly. Paragraph seems to be
> moving left as you increase the number of images. The problem may not only
> be in break lines code may also be in the way reportlab interpreting
> images. I mean even a single line paragraph is not properly center aligned
> if it contains images..

OK the bug is that each image is being regarded as a word and our code assumes 
that words are followed by spaces so the wrong width gets computed. I'm looking 
into it.
Robin Becker

More information about the reportlab-users mailing list