File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ def construct(self):
85
85
from manim .mobject .text .text_mobject import Text
86
86
from manim .scene .scene import Scene
87
87
88
- from manim .constants import DEFAULT_FONT_SIZE , RIGHT , TAU
88
+ from manim .constants import DEFAULT_FONT_SIZE , DEFAULT_STROKE_WIDTH , RIGHT , TAU
89
89
from manim .mobject .opengl .opengl_surface import OpenGLSurface
90
90
from manim .mobject .opengl .opengl_vectorized_mobject import OpenGLVMobject
91
91
from manim .utils .color import ManimColor
@@ -389,7 +389,7 @@ def _adjust_stroke_width_for_text(
389
389
if not isinstance (vmobject , SVGMobject ):
390
390
return 2.0 # default in DrawBorderThenFill
391
391
font_size = getattr (vmobject , "font_size" , DEFAULT_FONT_SIZE )
392
- return 2
392
+ return ( font_size / DEFAULT_FONT_SIZE ) * DEFAULT_STROKE_WIDTH * scale_factor
393
393
394
394
def reverse_submobjects (self ) -> None :
395
395
self .mobject .invert (recursive = True )
You can’t perform that action at this time.
0 commit comments