RE: [MACTCL] Re: unicode/tkinter difficulties on macosx
by Alastair Davies other posts by this author
Oct 19 2005 6:12AM messages near this date
Re: [MACTCL] Re: unicode/tkinter difficulties on macosx
|
[MACTCL] Re: unicode/tkinter difficulties on macosx
vincent,
My understanding is that at present TkAqua cannot draw all Unicode
characters, but that Benjamin Riefenstahl has developed a patch (see message
below) to enable it to do so.
I hope this helps,
Kind regards, Alastair
-----Original Message-----
From: Benjamin Riefenstahl
Sent: 18 March 2005 14:09
Subject: Re: [MACTCL] Unicode in Aqua Tk
Hi Linus,
"Linus Nyberg" writes:
> I read something about ATSU not being easily pluggable into the Tk
> structure, but I just want to know what the current status is...
Unicode doesn't work satifactorily with the QuickDraw API used in the
current Tk source.
I wrote a patch for using ATSU instead, see
<http://sourceforge.net/tracker/?group_id=12997&atid=312997&func=detail&aid=
638966> .
This implementation is slower than the QuickDraw based stuff in some
situations, so I am working on optimizations, before this can go into
CVS. Unfortunately, optimizing and testing is going slow and I can
only devote limited time to it.
benny
-----Original Message-----
From: vincent rioux
Sent: 19 October 2005 12:24
thank you for your reply.
well, i already tried to change of font, but still it won't take this index.
--------------------------------------------------------------------
from Tkinter import *
import tkFont
root = Tk()
myFont = tkFont.Font(size=24, family='Junicode')
w = Label(root, text=u'\u0254', font=myFont)
w.pack()
root.mainloop()
--------------------------------------------------------------------
you can find junicode on the web:
http://www.engl.virginia.edu/OE/junicode/junicode.html
for the code of the character I wanted to display :
http://www.engl.virginia.edu/OE/junicode/docs/junicode_ipa.html
by advance many thanks
vincent
Russell E. Owen wrote:
In article <4354C5DE.5030003@[...].org> ,
vincent rioux <vincent.rioux@[...].org>
wrote:
w = Label(root, text=u'\u0254')
...
This should display an 'open o' of the IPA.
It happens to work with python from FINK (hence using x11) but I just
can't get it to work on pythonw2.4/tcl-tk acqua. It will only display an
empty square....
My guess is that the font you are using is missing the character in
question. Try setting the font of the widget to something with a richer
character set.
-- Russell
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Tcl-mac mailing list
Tcl-mac@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-mac
Thread:
Russell E. Owen
Vincent Rioux
Alastair Davies
Vincent Rioux
Vincent Rioux
Alastair Davies
James Tittle
Revar Desmera
Vincent Rioux
Alastair Davies
|