ManimCommunity / ManimCommunity/manim

[BUG] Some characters exhibit abnormalities under the OpenGL renderer.

Open
#3,985 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
40.9k
Forks
3.1k
Avg merge
3d 12h
Merged PRs (30d)
25

Description

## Description of bug / unexpected behavior
Some characters exhibit abnormalities under the OpenGL renderer. Everything is normal under the Cairo renderer.

Code for reproducing the problem

```py
class BugReport02(Scene):
def construct(self):
mathtex = MathTex(r'\text{MathTex: 波源相对于介质运动,}v_s', font_size=70, tex_template=TexTemplateLibrary.ctex)
text = Text(r'Text: 波源相对于介质运动', font_size=70, ).next_to(mathtex, UP)
tex = Tex(r'Tex: $v_S,u_S, w, \omega$', font_size=70).next_to(mathtex, DOWN)
self.add(mathtex, text, tex)
```

Cairo:
![BugReport02_ManimCE_v0 18 1_Cairo](https://github.com/user-attachments/assets/0ea03481-ad08-4577-93a4-d4d028561e8c)

OpenGL:
![BugReport02_ManimCE_v0 18 1_OpenGL](https://github.com/user-attachments/assets/60578c3e-b04b-43ee-ab43-beaa59edd838)
![BugReport02_ManimCE_v0 18 1_OpenGL_02](https://github.com/user-attachments/assets/b1e60069-9975-4557-87ed-12b63163d3ef)

## System specifications

System Details

- OS Windows 11
- RAM: 64GB
- Python version : Python 3.10

LaTeX details

+ LaTeX distribution: TeX Live 2024

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the supplied BugReport02 reproduction using the Chinese text, MathTex, Text, and Tex under both Cairo and OpenGL. Compare the rendered output and trace the OpenGL rendering path for the affected characters; done means the characters render normally under OpenGL as they do under Cairo.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex, python
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.