vitalline Posted August 26, 2022 Share Posted August 26, 2022 If the antialiasing is set to Off and a text is being drawn at around Y=640, some pixels are occasionally shifted away from their corresponding locations, seemingly at random. This happens most commonly on the bottom part of the text, and is generally more common at the left side of the image (closer to X=0). The offset can be repeated by placing the same text at the exact same location, even in different colors. It seemingly only happens with some strings but not others, but anything ending with "tability" seems to cause it quite often. It also seems to be font-dependent, as I could reproduce it with Arial and Typostuck (a downloaded font), but not Calibri. OS: Windows 10 21H1 (64-bit), build 19043.1889 CPU: Intel Core i5-10400F GPU: NVIDIA GeForce RTX 2060 SUPER, driver version 512.15 PDN version: 4.3.12 (Free) Steps to reproduce: 1. Create a new 640+ pixels tall image. (The issue was first noticed at a 400×687 image, but could be reproduced on an 800×1374 image and an 800×800 image.) 2. Select the Text tool, switch the font to Arial and disable antialiasing. 3. Write a string such as "Instability" (or any string ending with "tability"). The string should take one line and be around Y=640. Press Esc to draw the text. 4. Repeat step 3 for 5-20 times until a location that causes the issue to appear is found. Workaround if someone else has the same issue: I don't know if this fixes the issue for all strings that could cause it, but adding a line break at the end of the string (after the "y" in "tability") seems to fix this specific case. Attached is a visual demonstration of the issue. 1 2 Quote Link to comment Share on other sites More sharing options...
Roly Poly Goblinoli Posted August 26, 2022 Share Posted August 26, 2022 Reproduces 100% of the time under these exact conditions: - Arial size 12 font, no antialiasing - Image size is 400x687 - Mark the pixel at location 120,636 - Write the word "Instability" and position it so the top pixel of the first letter I is at position 120,636 - Press escape to confirm the text. It should change incorrectly Seems this position also affects some other font sizes. The excess space below or to the right can be any size. 2 Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted August 26, 2022 Share Posted August 26, 2022 Yup, that repros for me. I'll check it out 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 August 26, 2022 Share Posted August 26, 2022 This seems to be a bug in Direct2D/DirectWrite with respect to clipping. Caching the renderer's output seems to fix this, although it'll use more memory. 2 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 February 28, 2023 Share Posted February 28, 2023 Does this repro for anyone using the latest version (5.0.2) ? The fix for this in the "4.3.13" branch didn't get integrated into the 5.0 code, but I also can't seem to reproduce it anymore 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...
Lemonade Posted February 28, 2023 Share Posted February 28, 2023 (edited) Can't figure out why but yes, happens sometimes in Paint.net 5.0.2 There is a spot on 600x600 px canvas where it does happen every time if zoom is set to 268% when typing or pasting a word.Link to pdn file (dropbox) EDIT: zoom has nothing to do with this issue. Edited June 28, 2023 by Lemonade more information 1 Quote Link to comment Share on other sites More sharing options...
Lemonade Posted February 28, 2023 Share Posted February 28, 2023 (edited) Attached a picture with better representation. Edited June 28, 2023 by Lemonade 2 Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted March 1, 2023 Share Posted March 1, 2023 Yeah that "works" for me, thanks @Lemonade 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 March 1, 2023 Share Posted March 1, 2023 Okay, fixed. The 5.0.3 update will work correctly for this. 1 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...
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.