mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +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
|
from manimpango import TextSetting
|
||||||
|
|
||||||
TEXT_MOB_SCALE_FACTOR = 1/100
|
TEXT_MOB_SCALE_FACTOR = 1/100
|
||||||
|
DEFAULT_LINE_SPACING_SCALE = 0.3
|
||||||
|
|
||||||
class Text(SVGMobject):
|
class Text(SVGMobject):
|
||||||
CONFIG = {
|
CONFIG = {
|
||||||
|
@ -55,7 +55,7 @@ class Text(SVGMobject):
|
||||||
)
|
)
|
||||||
self.font_size = self.size
|
self.font_size = self.size
|
||||||
if self.lsh == -1:
|
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:
|
else:
|
||||||
self.lsh = self.font_size + self.font_size * self.lsh
|
self.lsh = self.font_size + self.font_size * self.lsh
|
||||||
text_without_tabs = text
|
text_without_tabs = text
|
||||||
|
|
Loading…
Add table
Reference in a new issue