Skip to content

Commit 32e99e0

Browse files
committed
Fix small use_svg_cache kwargs error
1 parent 6cc6182 commit 32e99e0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

manim/mobject/text/text_mobject.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,7 @@ def __init__(
433433
width: float = None,
434434
should_center: bool = True,
435435
disable_ligatures: bool = False,
436+
use_svg_cache: bool = False,
436437
**kwargs,
437438
) -> None:
438439
self.line_spacing = line_spacing
@@ -495,7 +496,7 @@ def __init__(
495496
height=height,
496497
width=width,
497498
should_center=should_center,
498-
use_svg_cache=False,
499+
use_svg_cache=use_svg_cache,
499500
**kwargs,
500501
)
501502
self.text = text
@@ -1161,8 +1162,8 @@ def __init__(
11611162
Text.font_list = (
11621163
Text.font_list if len(Text.font_list) > 0 else manimpango.list_fonts()
11631164
)
1164-
if font not in Text.fonts_list:
1165-
logger.warning(f"Font {font} not in {Text.fonts_list}.")
1165+
if font not in Text.font_list:
1166+
logger.warning(f"Font {font} not in {Text.font_list}.")
11661167
self.font = font
11671168
self._font_size = float(font_size)
11681169
self.slant = slant

0 commit comments

Comments
 (0)