We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e3516e commit 5010a11Copy full SHA for 5010a11
1 file changed
hed/tools/visualization/tag_word_cloud.py
@@ -46,7 +46,7 @@ def create_wordcloud(word_dict, mask_path=None, background_color=None, width=400
46
kwargs.setdefault('min_font_size', 8)
47
if 'font_path' not in kwargs:
48
kwargs['font_path'] = None
49
- elif kwargs['font_path'] and not kwargs['font_path'].endswith((".ttf", ".otf", ".TTF", ".OTF")):
+ elif kwargs['font_path'] and not kwargs['font_path'].lower().endswith((".ttf", ".otf")):
50
raise HedFileError("InvalidFontPath", f"Font {kwargs['font_path']} not valid on this system", "")
51
52
wc = WordCloud(background_color=background_color, mask=mask_image,
0 commit comments