fpdf2 icon indicating copy to clipboard operation
fpdf2 copied to clipboard

Why is line_height not available directly in the write() function?

Open Alexis-Falquier opened this issue 5 months ago • 1 comments

Currently to write a block of text and adjust the line height one would need to do this:

...
with pdf.text_columns(line_height=1.3) as text_block:
        text_block.write(text=<block of text>)
...

while it isnt much, it seems logical for the write() function to have the ability to manipulate the text it is writing and therefore have line height as a parameter, as such: pdf.write(text=<block of text>, line_height=1.3)

In fact it would make sense that write() have most of the parameters available in text_columns() is there a reason that they are not?

Alexis-Falquier avatar Sep 04 '24 04:09 Alexis-Falquier