Commit 756e8d8
Use font zoom in stringExtent and textExtent
Previously, stringExtent calculated the width of a string in pixels using GC.getZoom(), which could lead to inconsistencies if the provided font had a different zoom level. This change ensures that the pixels-to-points conversion uses the zoom of the specified font.1 parent 0904886 commit 756e8d8
File tree
1 file changed
+2
-2
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5644 | 5644 | | |
5645 | 5645 | | |
5646 | 5646 | | |
5647 | | - | |
| 5647 | + | |
5648 | 5648 | | |
5649 | 5649 | | |
5650 | 5650 | | |
| |||
5724 | 5724 | | |
5725 | 5725 | | |
5726 | 5726 | | |
5727 | | - | |
| 5727 | + | |
5728 | 5728 | | |
5729 | 5729 | | |
5730 | 5730 | | |
| |||
0 commit comments