Skip to content

Commit a5a107c

Browse files
authored
make Paragraph use CairoText (#798)
1 parent 46ce834 commit a5a107c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

manim/mobject/svg/text_mobject.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,11 @@ class Paragraph(VGroup):
399399
`weird <https://github.com/3b1b/manim/issues/1067>`_. Consider using
400400
:meth:`remove_invisible_chars` to resolve this issue.
401401
402+
.. note::
403+
404+
Due to issues with the Pango-powered :class:`.Text`, this class uses
405+
:class:`.CairoText`.
406+
402407
Parameters
403408
----------
404409
line_spacing : :class:`int`, optional
@@ -431,7 +436,7 @@ def __init__(self, *text, **config):
431436
VGroup.__init__(self, **config)
432437

433438
lines_str = "\n".join(list(text))
434-
self.lines_text = Text(lines_str, **config)
439+
self.lines_text = CairoText(lines_str, **config)
435440
lines_str_list = lines_str.split("\n")
436441
self.chars = self.gen_chars(lines_str_list)
437442

0 commit comments

Comments
 (0)