From 2b828c49aa930440e4481c80d388b46753b50e49 Mon Sep 17 00:00:00 2001 From: Benjamin Hackl Date: Tue, 1 Dec 2020 09:49:47 +0100 Subject: [PATCH] make Paragraph use CairoText --- manim/mobject/svg/text_mobject.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/manim/mobject/svg/text_mobject.py b/manim/mobject/svg/text_mobject.py index f7d2f82548..1755e16a99 100644 --- a/manim/mobject/svg/text_mobject.py +++ b/manim/mobject/svg/text_mobject.py @@ -399,6 +399,11 @@ class Paragraph(VGroup): `weird `_. Consider using :meth:`remove_invisible_chars` to resolve this issue. + .. note:: + + Due to issues with the Pango-powered :class:`.Text`, this class uses + :class:`.CairoText`. + Parameters ---------- line_spacing : :class:`int`, optional @@ -431,7 +436,7 @@ def __init__(self, *text, **config): VGroup.__init__(self, **config) lines_str = "\n".join(list(text)) - self.lines_text = Text(lines_str, **config) + self.lines_text = CairoText(lines_str, **config) lines_str_list = lines_str.split("\n") self.chars = self.gen_chars(lines_str_list)