mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 22:13:30 +08:00
Got sick of inconsistant Tex sizes
This commit is contained in:
@ -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)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user