Closed edutrul closed 1 year ago
Hello @edutrul, thanks for your PR.
I did some tests and it seems that the problem is solved with your change ==> "float $fontSize". I am very happy that this feature is useful for you. It was hard work to develop this, and I didn't know if I was helping anyone.
Hi @claviska, can you take a look at this PR?
Sorry about that. Fixed in 4.0.4.
Related ticket: #303
The text is being cropped every time whenever I use the function
textBox
Steps to reproduce:
Use the method
textBox
(of course the values do not match exactly the screenshot but can give you an idea).
And you can notice that words "dueño qu" "qu" is missing the "e" which should be "dueño" and the word "que" should be in the next line since there is not enough space.
Proposal solution
Change the data type from
int
tofloat
since there's a previous division for the maxWidth to convert px to pt and the division returns a float value. This decimal point is very important so that it doesn't crop.With the fix provided, now you can see the expected result:
This fixes the issue from #303