midora Posted November 3, 2021 Share Posted November 3, 2021 Sorry no attachment because the merge of the account exceeded the limit (and I have no idea why I'm not able to delete old stuff). I'm using a 125% scaling. Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted November 3, 2021 Share Posted November 3, 2021 Yeah there's something weird with the rendering that I'm currently trying to nail down These are the PdnLabel control, and Settings also uses it but doesn't have this garbly result, so I don't know what the difference is just yet Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Rick Brewster Posted November 4, 2021 Share Posted November 4, 2021 Okay I have a fix for this. I think this is actually a rendering bug in DirectWrite. My fix is to first render into a bitmap and then draw the bitmap w/ clipping, as opposed to drawing the text w/ clipping. This was affecting links, too. (PdnLinkLabel) Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
midora Posted November 4, 2021 Author Share Posted November 4, 2021 (edited) I remember that I have seen the issue in PdnLinkLabel too but forgot to report it. Maybe the issue is related to the padding of the strings at the beginning or end (i.e. via StringFormat). Edited November 4, 2021 by midora Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted November 4, 2021 Share Posted November 4, 2021 I did fix up some layout code regarding padding, but the old code was just accidentally doing the right thing but in a dumb way. So, I really don't know. Setting Padding to 0 didn't fix things. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
midora Posted November 4, 2021 Author Share Posted November 4, 2021 I meant the padding via TextFormatFlags (LeftAndRightPadding, NoPadding) and not the Padding property. But I have no idea if DirectDraw provides similar functionality. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.