question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues with Text and Cairo

See original GitHub issue

This is probably a bug with Cairo rather than ManimCE so this might not be something you can really fix, but there are at least a couple oddities that happen when trying to use the Text command:

  • Characters in the Supplemental Planes (i.e. with Unicode code points 0x10000 or more) are taken to be mod 0x10000 instead. For example, characters 0x20100 and 0x10100 both display as Ā, whose code point is 0x100.
  • Right-to-left text isn’t supported. For example, if Arabic text is given, every character is in its isolated form, written from left to right.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
leotrscommented, Sep 9, 2020

The Pango description says that it supports native font handling in all of windows, mac, and linux. But that may be too much work, and we may just want to wait until Cairo is out…

0reactions
naveen521kkcommented, Sep 23, 2020

I am taking over implementing Pango with Manim using binding pangocffi https://pangocffi.readthedocs.io/en/latest/ pangocairocffi https://pangocairocffi.readthedocs.io/en/latest/

Read more comments on GitHub >

github_iconTop Results From Across the Web

bad rendering showing text with CAIRO_ANTIALIAS_BEST
I can reproduce the problem. I took a quick look at this has "something" to do with _render_glyph_outline() in src/cairo-ft-font.c. Ignoring the ...
Read more >
can't render text in cairo - Stack Overflow
The answer below does not - but it seems you are drawing with white color, is this intended (this turned out to be...
Read more >
Cairo.jl's text interface #161 - GitHub
I'm puzzled by the text handling in Cairo.jl, and seek enlightenment. ... cormullion opened this issue on Sep 22, 2016 · 2 comments....
Read more >
Artifacts when redrawing text with --enable-system-cairo
Just as I was entering this bug, the problem showed each time I would make a spelling mistake and this text box had...
Read more >
text: Cairo: A Vector Graphics Library
That means for example that most complex scripts like Hebrew, Arabic, and Indic scripts are out of question. No kerning or correct positioning...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found