Skip to content

Commit c8386eb

Browse files
committed
Case-insensitive font identification
1 parent 814f152 commit c8386eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proplot/wrappers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1351,7 +1351,7 @@ def text_wrapper(
13511351
if not isinstance(fontname, str) and np.iterable(
13521352
fontname) and len(fontname) == 1:
13531353
fontname = fontname[0]
1354-
if fontname in styletools.fonts:
1354+
if fontname.lower() in list(map(str.lower, styletools.fonts)):
13551355
kwargs['fontfamily'] = fontname
13561356
else:
13571357
_warn_proplot(

0 commit comments

Comments
 (0)