mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Got sick of inconsistant Tex sizes
This commit is contained in:
parent
2a711a37f8
commit
c9f5cefef4
1 changed files with 1 additions and 5 deletions
|
@ -13,11 +13,7 @@ class TexMobject(Mobject):
|
||||||
}
|
}
|
||||||
def __init__(self, expression, **kwargs):
|
def __init__(self, expression, **kwargs):
|
||||||
if "size" not in kwargs:
|
if "size" not in kwargs:
|
||||||
#Todo, make this more sophisticated.
|
size = "\\Large"
|
||||||
if len("".join(expression)) < MAX_LEN_FOR_HUGE_TEX_FONT:
|
|
||||||
size = "\\Huge"
|
|
||||||
else:
|
|
||||||
size = "\\large"
|
|
||||||
digest_locals(self)
|
digest_locals(self)
|
||||||
Mobject.__init__(self, **kwargs)
|
Mobject.__init__(self, **kwargs)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue