Re: Determining whether a glyph is available in Tkinter

2013-12-20 Thread wxjmfauth
Le vendredi 20 décembre 2013 00:10:58 UTC+1, wmcb...@gmail.com a écrit : > On Monday, December 16, 2013 10:58:06 PM UTC-5, Terry Reedy wrote: > > > In this case, I already know that the glyphs I chose work with the default > fonts for OS X 10.4+ and Windows 7+, but not for (for example) Win XP

Re: Determining whether a glyph is available in Tkinter

2013-12-19 Thread wmcbrine
On Monday, December 16, 2013 10:58:06 PM UTC-5, Terry Reedy wrote: > I would not assume that the default covers more than ascii. In this case, I already know that the glyphs I chose work with the default fonts for OS X 10.4+ and Windows 7+, but not for (for example) Win XP. > But to answer your

Re: Determining whether a glyph is available in Tkinter

2013-12-16 Thread Terry Reedy
On 12/16/2013 6:59 PM, wmcbr...@gmail.com wrote: I'm not going to control the font. Tk widgets that display text must use *some* font. If you do not select one, then you get the system-dependent default. for k, v in tk.Text().configure().items(): print(k, v) ... font ('font', 'font', 'Font',

Re: Determining whether a glyph is available in Tkinter

2013-12-16 Thread wmcbrine
I'm not going to control the font. This is for a program that's distributed to the general public, for use on a wide variety of systems. But what I do in the current version is to use the ASCII label strings by default, and have a command-line option to select the "graphical" (non-ASCII Unicode)

Re: Determining whether a glyph is available in Tkinter

2013-12-16 Thread Terry Reedy
On 12/16/2013 12:32 PM, wmcbr...@gmail.com wrote: I have a Tkinter app that can optionally label some buttons with certain Unicode glyphs that aren't always available (depending on the OS, etc.). It depends on the font in use. The best scenario would be to always use the same unicode font. Idl