Skip to content

Commit

Permalink
Fix sans-serif check condition
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGrace2282 committed Feb 2, 2024
1 parent 7139564 commit 40d357a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manim/mobject/text/text_mobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ def __init__(
if font and warn_missing_font:
fonts_list = Text.font_list()
# handle special case of sans/sans-serif
if font == "sans-serif":
if font.lower() == "sans-serif":
font = "sans"
if font not in fonts_list:
# check if the capitalized version is in the supported fonts
Expand Down

0 comments on commit 40d357a

Please sign in to comment.