mirror of
https://github.com/3b1b/manim.git
synced 2025-08-31 18:08:32 +00:00
Move 0.3 constant to DEFAULT_LINE_SPACING_SCALE
This commit is contained in:
parent
6eb7edc664
commit
5765ab9055
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ from manimpango import PangoUtils
|
|||
from manimpango import TextSetting
|
||||
|
||||
TEXT_MOB_SCALE_FACTOR = 1/100
|
||||
|
||||
DEFAULT_LINE_SPACING_SCALE = 0.3
|
||||
|
||||
class Text(SVGMobject):
|
||||
CONFIG = {
|
||||
|
@ -55,7 +55,7 @@ class Text(SVGMobject):
|
|||
)
|
||||
self.font_size = self.size
|
||||
if self.lsh == -1:
|
||||
self.lsh = self.font_size + self.font_size * 0.3
|
||||
self.lsh = self.font_size + self.font_size * DEFAULT_LINE_SPACING_SCALE
|
||||
else:
|
||||
self.lsh = self.font_size + self.font_size * self.lsh
|
||||
text_without_tabs = text
|
||||
|
|
Loading…
Add table
Reference in a new issue