diff --git a/manimlib/mobject/svg/string_mobject.py b/manimlib/mobject/svg/string_mobject.py index c675254d..a723601d 100644 --- a/manimlib/mobject/svg/string_mobject.py +++ b/manimlib/mobject/svg/string_mobject.py @@ -47,6 +47,7 @@ class StringMobject(SVGMobject, ABC): self, string: str, fill_color: ManimColor = WHITE, + fill_border_width: float = 0.5, stroke_color: ManimColor = WHITE, stroke_width: float = 0, base_color: ManimColor = WHITE, @@ -65,12 +66,10 @@ class StringMobject(SVGMobject, ABC): self.use_labelled_svg = use_labelled_svg self.parse() - super().__init__( - stroke_color=stroke_color, - fill_color=fill_color, - stroke_width=stroke_width, - **kwargs - ) + super().__init__(**kwargs) + self.set_stroke(stroke_color, stroke_width) + self.set_fill(fill_color, border_width=fill_border_width) + self.note_changed_stroke() self.labels = [submob.label for submob in self.submobjects] def get_file_path(self, is_labelled: bool = False) -> str: