Tk Source Code

View Ticket
Login
Ticket UUID: 37c6fcf92af3a260428658f23affd71c799e6aea
Title: print.tcl: _print_widget on Windows — isotropic mapping uses only one axis, distorts canvas aspect ratio
Type: Bug Version: Tk 9.0.x
Submitter: anonymous Created on: 2026-06-24 17:15:10
Subsystem: (unused) Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2026-06-25 05:32:29
Resolution: None Closed By: nobody
    Closed on:
Description:
_gdi map gets only one logical/physical value → Y-axis stretched on wide canvases.

canvas .c -width 500 -height 200 -background white -scrollregion {0 0 500 200}
.c create oval 300 80 420 150 -fill lightblue -outline navy
pack .c
tk print .c
Expected: Oval keeps screen proportions. Actual: Vertically stretched.

Fix: Compute both ix/iy from limiting scale; -logical "$window_x $window_y" -physical "$ix $iy".
User Comments: kevin_walzer added on 2026-06-25 05:32:29:
Are you able to provide a patch?