| Ticket UUID: | 2777019 | |||
| Title: | bad anchor on postscript rotated text | |||
| Type: | Bug | Version: | obsolete: 8.6b1.1 | |
| Submitter: | egavilan | Created on: | 2009-04-21 03:22:32 | |
| Subsystem: | 06. Canvas Postscript | Assigned To: | dkf | |
| Priority: | 8 | Severity: | ||
| Status: | Closed | Last Modified: | 2009-05-01 22:21:54 | |
| Resolution: | Fixed | Closed By: | dkf | |
| Closed on: | 2009-05-01 15:21:54 | |||
| Description: |
The (new) rotated text on canvas respect the -anchor option on display, but the postscript output is always rotated from the nw corner.
This sample script shows the (incorrect) behaviour:
===================================
package require Tk 8.6b1.1
canvas .c -bg white -width 400 -height 400
pack .c
for {set i 1} {$i <= 3} {incr i} {
set y [expr {$i * 100}]
.c create line 0 $y 400 $y
set x [expr {$i * 100}]
.c create line $x 0 $x 400
}
foreach anchor {nw n ne w c e sw s se} \
{x y} {100 100 200 100 300 100\
100 200 200 200 300 200\
100 300 200 300 300 300} {
for {set angle 0} {$angle < 360} {incr angle 90} {
.c create text $x $y \
-text abc \
-angle $angle \
-font {Courier 18 bold} \
-anchor $anchor
}
}
after 5000 { .c postscript -file output.ps ; exit }
======================================
compare the on-display and postscript output
| |||
| User Comments: |
dkf added on 2009-05-01 22:21:54:
allow_comments - 1 dkf added on 2009-05-01 22:21:53: Sorted; the 'rotate' was applied at the wrong point. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki