Commit cb16f62
Use font device when setting the font instead of gc device
When a font is initialized with a Printer as its device, it should only
be used with a GC that was also created from that same Printer. Using
such a font with a GC tied to a different device, like a Display, leads
to a device mismatch. Since the printer may have a much higher DPI
(e.g., 600 DPI) compared to the display (typically 96 DPI), this
mismatch causes the text to render extremely large.1 parent f8c19db commit cb16f62
File tree
1 file changed
+1
-1
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4943 | 4943 | | |
4944 | 4944 | | |
4945 | 4945 | | |
4946 | | - | |
| 4946 | + | |
4947 | 4947 | | |
4948 | 4948 | | |
4949 | 4949 | | |
| |||
0 commit comments