Bug 558586

Summary: Printed font size depends on monitor DPI
Product: [Eclipse Project] Platform Reporter: Simeon Andreev <simeon.danailov.andreev>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: loskutov, peter
Version: 4.14   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=545953
Whiteboard:
Attachments:
Description Flags
SWT snippet to reproduce the problem with. none

Description Simeon Andreev CLA 2019-12-23 06:32:44 EST
Created attachment 281316 [details]
SWT snippet to reproduce the problem with.

One of our developer reported a problem with SWT and printing (on paper). Printed sheets have different font size depending on the monitor DPI (e.g. wide-screen vs. old non-wide screen monitors).

This should be coming from bug 545953, where this change was added:

https://git.eclipse.org/c/platform/eclipse.platform.swt.git/diff/bundles/org.eclipse.swt/Eclipse%20SWT/gtk/org/eclipse/swt/graphics/Font.java?id=3c0e74f1ed5a447b60eb0a783979cf9144e65960

Unfortunately I don't have a setup with which I can work on  this, or present more insights.