Commit 1b60a60
committed
Fix multiline text line spacing to account for font descenders
The line height calculation for multiline text used getbbox('A') which
only measures the capital letter A height, missing descenders from
characters like g, j, p, q, y. This caused overlapping lines when
multiline text contained lowercase letters with descenders.
Use 'Aj' instead so the bbox captures both ascent (from A) and
descent (from j), giving correct line spacing for all text.
Fixes #16461 parent 9f6a6a6 commit 1b60a60
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| |||
0 commit comments