Is it possible to set up letter/char spacing in Paragraph Style?
I tried to use spaceShrinkage
but it doesn't make any difference
According to the official documentation, p. 30:
The
setCharSpace
method adjusts one of the parameters of text -- the inter-character spacing.
It's followed by a code sample:
def charspace(canvas):
from reportlab.lib.units import inch
textobject = canvas.beginText()
textobject.setTextOrigin(3, 2.5*inch)
textobject.setFont("Helvetica-Oblique", 10)
charspace = 0
for line in lyrics:
textobject.setCharSpace(charspace)
textobject.textLine("%s: %s" %(charspace,line))
charspace = charspace+0.5
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With