Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fixed type mismatch for height & width parameters (#2185)

Michael Hill17fdaf4f4ad4
diff --git a/manim/mobject/svg/text_mobject.py b/manim/mobject/svg/text_mobject.py
index 6a462ae4c..d661383d7 100644
--- a/manim/mobject/svg/text_mobject.py
+++ b/manim/mobject/svg/text_mobject.py
@@ -423,8 +423,8 @@ class Text(SVGMobject):
gradient: tuple = None,
tab_width: int = 4,
# Mobject
- height: int = None,
- width: int = None,
+ height: float = None,
+ width: float = None,
should_center: bool = True,
unpack_groups: bool = True,
disable_ligatures: bool = False,