def _adjust_font(self):
fnames = [k for k in Widget_fontdict.keys()]<EOL>fl = list(map(str.lower, fnames))<EOL>if (not self.text_font) or self.text_font.lower() not in fl:<EOL><INDENT>self.text_font = "<STR_LIT>"<EOL><DEDENT>i = fl.index(self.text_font.lower())<EOL>self.text_font = fnames[i]<EOL>return<EOL>
Ensure the font name is from our list and correctly spelled.