linebender / linebender/piet

Better text render method for piet-svg with <path>

Open
#543 1 comment 0 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.