Commit 3995cc7
Fix annotation rasterization shrinking at high raster_quality
When raster_quality > 1, the temp raster device grew in pixels but kept
the default res=72, making its physical size (inches) grow proportionally.
AnnotationFunction::draw() pushes a viewport with absolute units (e.g.
unit(5, "mm")), which then only filled 1/raster_quality of the enlarged
device, causing the annotation to appear vertically shrunken.
Fix by scaling res with raster_quality so the device's physical size
stays constant regardless of quality level.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent fde96f7 commit 3995cc7
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1198 | 1198 | | |
1199 | 1199 | | |
1200 | 1200 | | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
1201 | 1209 | | |
1202 | 1210 | | |
1203 | 1211 | | |
| |||
0 commit comments