Skip to content

Commit 115dc1c

Browse files
committed
Fix Write() stroke width to scale with font_size or object scale
1 parent 783e210 commit 115dc1c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

manim/animation/creation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,9 @@ def _adjust_stroke_width_for_text(
388388
return stroke_width
389389
if not isinstance(vmobject, SVGMobject):
390390
return 2.0 # default in DrawBorderThenFill
391-
font_size = getattr(vmobject, "font_size", DEFAULT_FONT_SIZE)
392-
return (font_size / DEFAULT_FONT_SIZE) * DEFAULT_STROKE_WIDTH * scale_factor
391+
# font_size = getattr(vmobject, "font_size", DEFAULT_FONT_SIZE)
392+
# return (font_size / DEFAULT_FONT_SIZE) * DEFAULT_STROKE_WIDTH * scale_factor
393+
return 2
393394

394395
def reverse_submobjects(self) -> None:
395396
self.mobject.invert(recursive=True)

0 commit comments

Comments
 (0)