summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2017-09-24 14:50:09 (GMT)
committerfvogel <fvogelnew1@free.fr>2017-09-24 14:50:09 (GMT)
commit78a466c2bed0529925cbf3b8c2526629bf063e44 (patch)
treeed532d18e7d01db63d449cd0ef0c26fd0ab64015 /library
parent47bcb0359373bad17cdf5676fb0c616c60c6e94e (diff)
parentdb26ea2e60aedecdc6ced529480fe23aee34841e (diff)
downloadtk-78a466c2bed0529925cbf3b8c2526629bf063e44.zip
tk-78a466c2bed0529925cbf3b8c2526629bf063e44.tar.gz
tk-78a466c2bed0529925cbf3b8c2526629bf063e44.tar.bz2
Fix [8277e1a906]: fontchooser is out of sync with dynamically loaded fonts.
Diffstat (limited to 'library')
-rw-r--r--library/fontchooser.tcl3
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)
}