Tk Source Code

View Ticket
Login
Ticket UUID: 546910
Title: International postscript output
Type: Patch Version: None
Submitter: a_kovalenko Created on: 2002-04-21 23:27:55
Subsystem: 06. Canvas Postscript Assigned To: aku
Priority: 8 Severity: Minor
Status: Closed Last Modified: 2016-08-22 08:39:55
Resolution: Accepted Closed By: dkf
    Closed on: 2016-08-22 08:39:55
Description:
This patch enables postscript output for characters
that are neither in latin1 nor in system encoding. It's
based on Victor Wagner's patch (encoding vector
generation for unibyte system encoding). With my patch,
characters that are not  in system encoding are
displayed using "glyphshow". It also works fine when
system encoding is multibyte (e.g. *_*.UTF-8 locales)
User Comments: dkf added on 2010-01-03 22:58:39:

allow_comments - 1

dkf added on 2010-01-03 22:58:37:
This was applied quite a long time ago

a_kovalenko added on 2002-06-26 15:25:06:
Logged In: YES 
user_id=241496

Just updated font.test

dgp added on 2002-06-26 05:55:59:
Logged In: YES 
user_id=80530


The commit of this patch on June 25, 200 has
caused test font-32.1 to start failing:


==== font-32.1 Tk_TextLayoutToPostscript: ensure buffer
doesn't overflow FAILED
==== Contents of test case:

    # If there were a whole bunch of returns or tabs in a
row, then the
    # temporary buffer could overflow and write on the stack.
    
    csetup
"qwertyuiopasdfghjklzxcvbnm1234qwertyuiopasdfghjklzxcvbnm\n"
    .b.c itemconfig text -width 800
    .b.c insert text end
"qwertyuiopasdfghjklzxcvbnm1234qwertyuiopasdfghjklzxcvbnm\n"
    .b.c insert text end
"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
    .b.c insert text end "end"
    set x [.b.c postscript]
    set i [string first "(qwerty" $x] 
    string range $x $i [expr {$i + 213}]

---- Result was:
(qwertyuiopasdfghjklzxcvbnm1234qwertyuiopasdfghjklzxcvbnm)]
[(qwertyuiopasdfghjklzxcvbnm1234qwertyuiopasdfghjklzxcvbnm)]
[()]
...
[()]
[()
---- Result should have been:
(qwertyuiopasdfghjklzxcvbnm1234qwertyuiopasdfghjklzxcvbnm)
(qwertyuiopasdfghjklzxcvbnm1234qwertyuiopasdfghjklzxcvbnm)
()
...
()
(end)

==== font-32.1 FAILED

a_kovalenko added on 2002-06-25 19:42:32:

File Added - 25775: new-tk-muleps.patch

a_kovalenko added on 2002-05-23 07:42:33:

File Added - 23560: tk-8.4-ps-ml-r1.patch

a_kovalenko added on 2002-05-23 07:39:57:

File Added - 23559: tk-8.4-ps-ml-r1.patch

a_kovalenko added on 2002-04-22 06:27:55:

File Added - 21642: tk-8.4-ps-ml.patch

Attachments: