[Tkinter-discuss] Re: Inserting a unicode zero-width nonbreaking space into a Text widget, from Tkinter, on a Mac

Jeff Epler jepler at unpythonic.net
Wed Nov 3 22:17:45 CET 2004

> Jeff Epler <jepler <at> unpythonic.net> writes:
> > It doesn't make
> > things easier that Tcl has its own encoding machinery and list of fonts
> > to try.

On Wed, Nov 03, 2004 at 05:47:15AM +0000, Justin Ezequiel wrote:
> Can you explain more about this or can you point me to where I can read more 
> about this?

Well, there's the source:

The "list of fonts to try" I mentioned is in the generic tkFont.c.

I'm the most familiar with tkUnixFont, and I don't know how similar the
others are.

For each character, Tk searches for an X font from the same "family"
that has that character.  Since X fonts can be in a variety of
encodings, this gets even more exciting.  There are rules about what
fonts and encodings are preferred, but before giving up on finding a
particular character, Tk will try almost any font on the system.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.python.org/pipermail/tkinter-discuss/attachments/20041103/dad866da/attachment.pgp

More information about the Tkinter-discuss mailing list