[Tkinter-discuss] Unicode characters in canvas postscript
Vasilis Vlachoudis
Vasilis.Vlachoudis at cern.ch
Tue Mar 20 15:01:10 CET 2007
Hi Matthias,
thank you for your reply. Indeed the question marks are inside the
postscript. I was checking the postscript code generated and for the
Unicode characters it looks like this:
gsave
/Helvetica findfont 6 scalefont ISOEncode setfont
0.000 0.392 0.000 setrgbcolor AdjustColor
413 1250 [
[( ? )]
] 14 -0 0 0 false DrawText
grestore
Strings in postscript are enclosed in parenthesis ( )
I have tried it only on Linux (FC5). I went through the documentation of
tcl/tk it they claim that the canvas postscript is working with Unicode
characters.
Best Regards
Vasilis
-----Original Message-----
From: tkinter-discuss-bounces+vasilis.vlachoudis=cern.ch at python.org
[mailto:tkinter-discuss-bounces+vasilis.vlachoudis=cern.ch at python.org]
On Behalf Of mkieverpy at tlink.de
Sent: Tuesday, 20 March 2007 12:13
To: tkinter-discuss at python.org
Subject: Re: [Tkinter-discuss] Unicode characters in canvas postscript
Hello Vasilis,
>I want to add "print to postscript" functionality on my program. I have
>used the "postscript" method of Canvas, and it works nicely apart from
>all no-latin (Unicode) characters. On the screen appear Ok but on the
>postscript are replaced by question marks ?.
Do you mean question marks in the Postscript file or the printout?
If the Postscript file looks ok, it's your printing system.
At least on Mac OS X there were several issues regarding unicode and Tk.
So your Tk should be quite recent.
I could give it a try on a Linux system, if you're interested.
Regards,
Matthias Kievernagel
(mkiever/at/web/dot/de)
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss at python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
More information about the Tkinter-discuss
mailing list