Commit 2ac9121
[Win32] Fix wrong line height in StyledText #2405
The line height in StyledText is currently too large when the
auto-scaled device zoom is larger than the native zoom. This for example
happens on a 175% primary monitor with `swt.autoScale=int200` or with a
fixed `swt.autoScale` value that is higher than the primary monitor
zoom. This was caused by a recent change that accidentally used the
auto-scaled zoom instead of the native zoom for retrieving a font handle
combined with the general usage of the ScalingSWTFontRegistry that, in
comparison to the previous fixed-zoom registry, now returns an
accordingly scaled handle.
This change adapts the font handle retrieval to properly pass the native
zoom instead of the auto-scaled zoom.
Fixes #24051 parent e2ac7f1 commit 2ac9121
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 | |
|---|---|---|---|
| |||
2135 | 2135 | | |
2136 | 2136 | | |
2137 | 2137 | | |
2138 | | - | |
| 2138 | + | |
2139 | 2139 | | |
2140 | 2140 | | |
2141 | 2141 | | |
| |||
0 commit comments