-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Make Text use Pango by default #609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Note: I put up this PR as a suggestion. I think it makes sense to switch to rendering with Pango by default. If there are people against doing so already, feel free to speak up; I don't mind closing this PR again (or leaving it open until we feel that it is a better time to switch). |
|
Thank you for picking this up✌. |
|
If someone wonders about the RTD build time: the first time I pushed it we have 506 seconds (which is about right), and the second time (after removing an additional newline) 765 seconds. I think the latter build is just an outlier, no need to worry about it. |
naveen521kk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
I'm a little uncomfortable doing this because I still don't understand the new problem with Cairo installation on Windows. Am I understanding correctly that pycairo and pangocairocffi both contain Cairo wheels, and that the two are incompatible with each other? And if that is the case, should we be working towards replacing pycairo entirely? |
Are you referring to the problems where the import of Anyways, if so I think this is a problem with how
The description of |
|
Now, here I was forced to use But the problem is users doesn't download the correct binaries, choco helps here. I had been try to help those projects to have self included wheels just like pycairo. |
|
In that case can we open an issue to get chocolatey working again? |
I did my best there. Just waiting for their mods to come up soon. Maybe a week? |
|
@behackl can you fix this function? manim/manim/mobject/svg/text_mobject.py Lines 771 to 783 in d6f7653
Remove that "PANGO" from the hash. |
Wouldn't this cause |
naveen521kk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok then it can be merged.
List of Changes
This changes our default text renderer from the Cairo toy API to Pango. A
logger.infomessage is added that points to the former implementation in the form of CairoText.Testing Status
Tests pass (at least locally).
Acknowledgement