Implement math-mode text for Windows
- Dominant language
- Python
- Stars
- 30
- Forks
- 22
- Avg merge
- 3h 50m
- Merged PRs (30d)
- 2
Description
matplotlib uses 2 strategies for rendering text: a simple text render, and an outline-based render that is used when the text contains math/TeX expressions.
The Windows canvas backend currently can't render those math expressions. As a workaround, toga-chart does a naive stripping of math expressions, and renders them with the simple text renderer.
The fix for this will almost certainly be on the Toga canvas side; However, the workaround in toga-chart will need to be removed to test any potential fix (and, once it *is* fixed, be removed permanently).
Contributor guide
Research direction
Start by tracing the math-expression stripping workaround in toga-chart and then inspect the Toga Windows canvas path responsible for outline-based text rendering. Done means math/TeX expressions render correctly on Windows without the workaround; verify with a chart containing math text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- matplotlib, python
- Domain
- data-visualization, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100