File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ def construct(self):
94
94
from ..animation .animation import Animation
95
95
from ..animation .composition import Succession
96
96
from ..mobject .mobject import Group , Mobject
97
- from ..mobject .text . tex_mobject import SingleStringMathTex
97
+ from ..mobject .svg . svg_mobject import SVGMobject
98
98
from ..mobject .types .vectorized_mobject import VMobject
99
99
from ..utils .bezier import integer_interpolate
100
100
from ..utils .rate_functions import double_smooth , linear
@@ -386,9 +386,9 @@ def _adjust_stroke_width_for_text(
386
386
) -> float :
387
387
if stroke_width is not None :
388
388
return stroke_width
389
- if not isinstance (vmobject , SingleStringMathTex ):
390
- return 2 # default in DrawBorderThenFill
391
- font_size = getattr ( vmobject , "font_size" , DEFAULT_FONT_SIZE )
389
+ if not isinstance (vmobject , SVGMobject ):
390
+ return 2.0 # default in DrawBorderThenFill
391
+ font_size = DEFAULT_FONT_SIZE
392
392
return (font_size / DEFAULT_FONT_SIZE ) * DEFAULT_STROKE_WIDTH * scale_factor
393
393
394
394
def reverse_submobjects (self ) -> None :
You can’t perform that action at this time.
0 commit comments