Closed rfc-st closed 3 days ago
Hello!,
First of all, thank you for this library ^^.
Is there any parameter, or configuration option, to define the spacing for a long line of text that is displayed in several lines?.
As you can see in the following image (https://imgur.com/a/y8X088R), the fourth line starting with "Nota : " is displayed in two lines ... without any vertical spacing between them; both lines are displayed too close together.
Thanks!
You can set the spacing with the parameter "h". The default value of this parameter is the font size in pt.
Hi @rfc-st, and thank you for your kind words!
As a complementary answer, if you are using the multi_cell() method, you can also play with the max_line_height
parameter.
Do you have other questions @rfc-st? Tell us if we can close this issue, or else we'll try to help you further 🙂
Also, a side question: do you see a place in our documentation where we should document this better? 😅
Hello,
Thanks to both of you for the advices!: I will try them this weekend. And about the documentation, if you don't mind leaving this issue open for a few more days, I will check it thoroughly. I'm sure your advice is indicated.
Best regards,
Hello,
I have succeeded, by using YPos! (https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.YPos):
Thanks for your advices and for this great library!. Btw, i am using it on https://github.com/rfc-st/humble/ ... In case you would like to include a mention in https://py-pdf.github.io/fpdf2/#community :)
Regards,
Hello!,
First of all, thank you for this library ^^.
Is there any parameter, or configuration option, to define the spacing for a long line of text that is displayed in several lines?.
As you can see in the following image (https://imgur.com/a/y8X088R), the fourth line starting with "Nota : " is displayed in two lines ... without any vertical spacing between them; both lines are displayed too close together.
Thanks!