home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Submit: Code Patches
Font Rendering Issues
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="offbyone" data-source="post: 924574" data-attributes="member: 73415"><p>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 .</p><p>First pic shows current status, second after the fix. It also fixes the problem that single line labels are not exactly centered.</p><p>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 @<a href="https://forum.team-mediaportal.com/members/albert.67886/" target="_blank">Albert</a>).</p><p> </p><p>On a sidenote: a newer freetype binary is available (2.4.2 for win) and works fine with MP2.</p></blockquote><p></p>
[QUOTE="offbyone, post: 924574, member: 73415"] 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 @[URL='https://forum.team-mediaportal.com/members/albert.67886/']Albert[/URL]). On a sidenote: a newer freetype binary is available (2.4.2 for win) and works fine with MP2. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Submit: Code Patches
Font Rendering Issues
Contact us
RSS
Top
Bottom