Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #62095
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: Determining whether a glyph is available in Tkinter |
| Date | 2013-12-16 14:41 -0500 |
| References | <f84fbcb9-e784-4a2a-9c27-d55136e3c7b2@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4233.1387222873.18130.python-list@python.org> (permalink) |
On 12/16/2013 12:32 PM, wmcbrine@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. Idle, built on tkinter, has a configuration dialog that gets a list of available fonts and sets the one the user selects. I use Lucida Sans Unicode. It is not very pretty, but it seems to cover much the BMP. AFAIK, it should be available on all Windows from XP on. I do not know what comes with *nix and mac, but from reading https://en.wikipedia.org/wiki/Unicode_font#List_of_Unicode_fonts there seem to be TrueType fonts that you could install with your software: FreeSerif (etc), GNU Unifont, (both GPL), BitstreamCyber (free for non-commercial use). The font table linked above is followed by table indicating something about coverage. Unifont is the champ. > When they aren't available, Tkinter renders them as > "\uNNNN". What I'd like to do is check whether the glyphs are > available, and fall back to my own alternate text for the button if > not. Can I do this? Don't know. See the 'Utility software' section of the page above. > I'd also like to do the same in pygtk. No idea. -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Determining whether a glyph is available in Tkinter wmcbrine@gmail.com - 2013-12-16 09:32 -0800
Re: Determining whether a glyph is available in Tkinter Terry Reedy <tjreedy@udel.edu> - 2013-12-16 14:41 -0500
Re: Determining whether a glyph is available in Tkinter wmcbrine@gmail.com - 2013-12-16 15:59 -0800
Re: Determining whether a glyph is available in Tkinter Terry Reedy <tjreedy@udel.edu> - 2013-12-16 22:58 -0500
Re: Determining whether a glyph is available in Tkinter wmcbrine@gmail.com - 2013-12-19 15:10 -0800
Re: Determining whether a glyph is available in Tkinter wxjmfauth@gmail.com - 2013-12-20 01:18 -0800
csiph-web