[reportlab-users] Adding charSpace as a paragraph style attribute
Robin Becker
robin at reportlab.com
Mon Sep 1 13:33:15 EDT 2008
Henning von Bargen wrote:
> Looking at Paul's patch submitted here a few days ago,
> I don't see how and where the different charSpace value
> contributes to the string width calculations.
> So wouldn't a large charSpace value result in wrong line-breaking?
>
> Thinking about it, modifying the charSpace in a paragraph might be an
> excellent way to improve the quality of justified paragraphs...
> It could probably done automatically inside the _justifyDrawParaLine
> and _justifyDrawParaLineX functions of paragraph.py.
>
> Henning
......
you are right, I've been pondering whether charSpace can get in with the
upcoming release. There are two things that affect this one is charSpace and the
other is the space adjustment itself. I'm not sure if they are independent so I
need to do some simple testing to see if we can just scale all stringWidths or
if we need something more complex.
--
Robin Becker
More information about the reportlab-users
mailing list