Skip to content
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

Some bugs of code_mobject.py #1067

Closed
TonyCrane opened this issue May 14, 2020 · 1 comment · Fixed by ManimCommunity/manim#198
Closed

Some bugs of code_mobject.py #1067

TonyCrane opened this issue May 14, 2020 · 1 comment · Fixed by ManimCommunity/manim#198

Comments

@TonyCrane
Copy link
Collaborator

TonyCrane commented May 14, 2020

Here is some bugs of #1036

Bug 1. For Text()

The front spaces are not in front of the first character, but in the front of all of the characters, like this:

text1 = Text("  ab\ncd", font="Consolas", size=2)


So it will look not good when TransformText:

text2 = Text("ef\ngh", font="Consolas", size=2)
self.play(Transform(text1, text2))

Bug 2. For Code()

Background color of codes is choosed by html file pygments made, so if I let style='vim', the background color of codes will be the same as the background color of Scene.

And if I let style='autumn, the background color would be the same as the color of line numbers:

These are the 2 bugs I have found so far.
code_mobject.py is a good idea, but it ’s too early to submit pull requests and merge.
@NavpreetDevpuri Hope that you can fix these bugs.

I'm poor in English, hope you can understand me :)

@NavpreetDevpuri
Copy link
Contributor

nice work

eulertour pushed a commit to eulertour/manim-3b1b that referenced this issue Mar 3, 2021
see ManimCommunity/ManimPango#27 wheels are removed in the 
the latest release from PyPI so wheel is added manually so RTD doesn't fail.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants