Tk Source Code

View Ticket
Login
Ticket UUID: 220801
Title: canvas postscript problem
Type: Bug Version: obsolete: 8.1b2
Submitter: welch Created on: 2000-11-01 00:54:19
Subsystem: 06. Canvas Postscript Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2026-10-22 17:22:35
Resolution: Duplicate Closed By: serhiy.storchaka
    Closed on: 2026-09-21 14:28:36
Description:
OriginalBugID: 1689 Bug
Version: 8.1b2
SubmitDate: '1999-04-01'
LastModified: '1999-04-06'
Severity: LOW
Status: Assigned
Submitter: pat
ChangedBy: surles
OS: Solaris
OSVersion: SunOS Release 5.5.1
Machine: Other


Name:
Peter Weigand

ReproducibleScript:
    The output of canvas postscript of text and other elements are not
    properly aligned.
    .canvas create text 0 0 -font "Times 24" -text "|||||||||||" -anchor nw
    .canvas create text 10 5 -font "Times 24" -text "|||||||||||" -anchor nw
    .canvas create line 0 0 0 20
    .canvas postscript -file /tmp/test.ps -colormode gray
    
    



ObservedBehavior:
    The output is something like this:
    |||||||||||
         |||||||||||
    The texts are not positioned properly in postscript.
    As well the text is in postscript view smaller that other canvas objects
    compared with what you see in the window.
    



DesiredBehavior:
    The output should be something like this:
    |||||||||||
       |||||||||||
    That's what you see in the window but not with postscript.
User Comments: serhiy.storchaka added on 2026-09-21 14:28:36:

This was the font size in the Postscript output not matching the screen ([502026]), fixed in 8.5.6 by [d63b555adc]. With 8.6 and 9.1 the script gives the two texts at (0, 0) and (10, 5) in the Postscript output, as on the canvas.