bpo-39600, IDLE: Remove duplicated font names (GH-18430)
In the font configuration window, remove duplicated font names.
This commit is contained in:
parent
e00c1d0c45
commit
ed335cf53b
|
@ -607,8 +607,9 @@ class FontPage(Frame):
|
|||
font_bold = configured_font[2]=='bold'
|
||||
|
||||
# Set editor font selection list and font_name.
|
||||
fonts = list(tkFont.families(self))
|
||||
fonts.sort()
|
||||
fonts = tkFont.families(self)
|
||||
# remove duplicated names and sort
|
||||
fonts = sorted(set(fonts))
|
||||
for font in fonts:
|
||||
self.fontlist.insert(END, font)
|
||||
self.font_name.set(font_name)
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
In the font configuration window, remove duplicated font names.
|
Loading…
Reference in New Issue