Bug 537499

Summary: [HiDPI] Print margin not correct with high dpi
Product: [Eclipse Project] Platform Reporter: Fabio Zadrozny <fabiofz>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, eclipse.org, niraj.modi, thatnitind
Version: 4.8   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Attachments:
Description Flags
Screenshot showing issue of print margin with high dpi monitor.
none
Not painting between columns 80 and 81, cursor is at margin, font is Inconsolata@13pt. none

Description Fabio Zadrozny CLA 2018-07-30 08:59:15 EDT
Created attachment 275192 [details]
Screenshot showing issue of print margin with high dpi monitor.

Showing the print margin to 100 with a monitor with high dpi (with an editor with a font customized for consolas 10) makes the print margin appear in the wrong place.
Comment 1 Christian Karsch CLA 2019-02-02 03:16:46 EST
This Bug still appear on version 4.10

I use a UHD monitor and DPI-scaling of 175%
Comment 2 Niraj Modi CLA 2019-06-11 09:22:10 EDT
(In reply to Christian Karsch from comment #1)
> This Bug still appear on version 4.10
> 
> I use a UHD monitor and DPI-scaling of 175%

Quick query:
1. How are you measuring the print-margin ? I saw you used a series of '=' characters, can you share more details on this part.

2. Do you see the issue at 175% only can you try 200%. Thanks!
Comment 3 Nitin Dahyabhai CLA 2020-09-13 22:55:45 EDT
Created attachment 284118 [details]
Not painting between columns 80 and 81, cursor is at margin, font is Inconsolata@13pt.

In my case I'm measure it using the status line at the bottom of the window. This is a screenshot taken with the plain Text Editor on 4.17.0.I20200902-1800 with "-Dswt.enable.autoScale=true -Dswt.autoScale=150 -Dswt.autoScale.method=nearest". If I restart without those options, it paints in the right place, and restarting with the options makes the margin paint in the wrong place again.