Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fix oversized code window with opengl renderer (#1844)

Ryan McCauleye2d9ee45f5e9
diff --git a/manim/mobject/svg/text_mobject.py b/manim/mobject/svg/text_mobject.py
index be26d4600..f54b575e1 100644
--- a/manim/mobject/svg/text_mobject.py
+++ b/manim/mobject/svg/text_mobject.py
@@ -475,7 +475,10 @@ class Text(SVGMobject):
)
self.text = text
if self.disable_ligatures:
- self.submobjects = [*self.gen_chars()]
+ if config.renderer == "opengl":
+ self.set_submobjects(self.gen_chars())
+ else:
+ self.submobjects = [*self.gen_chars()]
self.chars = self.get_group_class()(*self.submobjects)
self.text = text_without_tabs.replace(" ", "").replace("\n", "")
if config.renderer == "opengl":