diff options
author | fvogel <fvogelnew1@free.fr> | 2017-09-24 14:49:49 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2017-09-24 14:49:49 (GMT) |
commit | db26ea2e60aedecdc6ced529480fe23aee34841e (patch) | |
tree | 8f05e55a0e90b90fa9084a58db50c57333aeb6f1 | |
parent | e7015e0cf1f85888d04570bdecafe3cc90068ab1 (diff) | |
parent | e0f48e9a758dd7144dabbb437aeddb50b0e5af3f (diff) | |
download | tk-db26ea2e60aedecdc6ced529480fe23aee34841e.zip tk-db26ea2e60aedecdc6ced529480fe23aee34841e.tar.gz tk-db26ea2e60aedecdc6ced529480fe23aee34841e.tar.bz2 |
Fix [8277e1a906]: fontchooser is out of sync with dynamically loaded fonts.
-rw-r--r-- | library/fontchooser.tcl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/fontchooser.tcl b/library/fontchooser.tcl index 8f91ade..5395acb 100644 --- a/library/fontchooser.tcl +++ b/library/fontchooser.tcl @@ -65,6 +65,9 @@ proc ::tk::fontchooser::Show {} { wm transient $S(W) [winfo toplevel $S(-parent)] tk::PlaceWindow $S(W) widget $S(-parent) } + set S(fonts) [lsort -dictionary [font families]] + set S(fonts,lcase) {} + foreach font $S(fonts) { lappend S(fonts,lcase) [string tolower $font]} wm deiconify $S(W) } |