Better text render method for piet-svg with <path>
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.4k
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
I think piet-svg would greatly benefit from rendering text as a <path> element rather than <text>.
This would allow us to get the exact size of text before drawing, instead of just a best guess. The current design seems to render the text on the host machine before letting whatever machine that views the SVG decide it's own dimensions.
This could be done with something like text-to-svg but probably rewritten in rust (tm)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing piet-svg's existing text-rendering path and the referenced text-to-svg approach. Determine how text should become a while preserving accurate sizing, then verify that rendered text dimensions and SVG output meet the intended behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100