-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Setting a stroke width for a Tex
object gives "M" devil horns
#3328
Comments
If you scale up your code you can see exactly where those "horns" come from and that they are unavoidable. LaTeX renders the output in order to only fill the outline of the font with no stroke - so expecting anything useful from showing the stroke seems strange to me, especially with a stroke width which is wider than the lines of the letters. class Test(Scene):
def construct(self):
test = Tex("M").scale_to_fit_height(6)
test.set_stroke(color = RED, width = 8)
self.add(test) |
#3321 Might fix this? |
Having a thick stroke around a text letter in my view does not really make sense... |
This is the output of my animated script using Test2.mp4 |
I use it in my videos to have an outline around letters. I draw the text twice, once with a thick, black stroke, and then another time normally on top of it. It looks perfect in most situations, but this is the one situation where it looks weird. I'm a bit surprised that some people aren't having this issue at all. For the people not having this issue, are you using the cairo renderer? If so, what is the information I should provide to help figure out where the difference lies? I use ArchLinux, and my manim version is 0.17.3. |
There is a thing called background_stroke |
...start by showing the version of all your libraries |
Aw man why didn't I hear about this sooner? That would have saved me some headaches. However, using background_stroke still creates horns. Here's the output of
How do I see the update status of my LaTeX libraries? I just have the ArchLinux |
Consider the following scene:
This is the result with the cairo renderer:
I would expect those devil horns not to be there. Interestingly, while the problem seems to be there in the opengl renderer as well, it's not nearly as pronounced.
The text was updated successfully, but these errors were encountered: