eirikbakke opened a new pull request #2076: [NETBEANS-346] Tabs, characters, and the right Margin don't line up URL: https://github.com/apache/netbeans/pull/2076 Fix a problem that caused the end-of-line marker (e.g. at 80 chars) to be displayed at an incorrect position (e.g. at 82 chars) on certain zoom levels, on Java 9 or above. This problem stems from rounding error caused by assuming that the width of each (monotype font) character is an integral number of logical pixels wide. The latter is not the case on HiDPI screens (e.g. where 6 "logical" pixels may map to 9 device pixels at 150% scaling), nor on Windows with subpixel antialiasing, and probably some other situations as well. This also fixes less prominent problems with visual alignment of tabs vs. spaces (e.g. 8-space tabs will get the wrong width due to the same rounding error). While looking at the related code, I discovered various other places where the same kind of rounding error is likely to cause problem; I created NETBEANS-4166 for these.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
