- Moderator
- #1
After doing the News plugin I noticed that some pixels at the bottom of a Label are always clipped away when it is just a single line and has no margin. This shouldn't happen, so I dug into the code and think I found where the problem is coming from. The calculation of a text's height is not taking the full possible height into account. I did a small change and the result can be on the screenshots below. I simply added a very large label and set the background to black so we can see what the bounding box is .
First pic shows current status, second after the fix. It also fixes the problem that single line labels are not exactly centered.
I am not sure if the fix is correct, I haven't fully understood the font rendering yet, so someone with more knowledge in this are should check this (/me looks at @Albert).
On a sidenote: a newer freetype binary is available (2.4.2 for win) and works fine with MP2.
First pic shows current status, second after the fix. It also fixes the problem that single line labels are not exactly centered.
I am not sure if the fix is correct, I haven't fully understood the font rendering yet, so someone with more knowledge in this are should check this (/me looks at @Albert).
On a sidenote: a newer freetype binary is available (2.4.2 for win) and works fine with MP2.