Can shaping be reused for different line breaks?
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- rust
- Domain
- computer-graphics
Research direction
The issue names no files, tests, or entry points. Start by locating the Rust library's shaping and line-break handling, then investigate whether shaping results can be reused across break opportunities. Done would require a decided approach, documented behavior, and tests or measurements covering the proposed reuse.
Written by the indexing model from the issue text.
Description
Can a the result of shaping a Unicode string differ from concatenating the results of shaping the two parts, after splitting that string at a line break opportunity?
Or phrased differently: when making multiple layouts of an otherwise-identical paragraph by making different choices about which line break opportunities to take, can we reuse some of the results of shaping computation? This might come up for example when resizing a window or other container.
For CSS layout specifically, we sometimes need to compute the min-content and max-content intrinsic size of an element. For text, this means measuring the width of the widest line when taking respectively all or none of the break opportunities.
Assuming that shaping is somewhat expensive, it would be good if we can avoid doing it from scratch three times. (Twice for min- and max-content, then once more for “real” layout.)
- Dominant language
- Rust
- Stars
- 335
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from linebender/skribo
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
linebender/skribo#39 ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
linebender/skribo#34 · 6 comments · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
linebender/skribo#26 · 4 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
linebender/skribo#23 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
linebender/skribo#22 · 2 comments ·
All issues in linebender/skribo
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
GiganticMinecraft/seichi-portal-backend#1651 ·
Maintainers usually reply within 1 day
-
Android visitors are offered the Linux .deb on cap.so's homepage and download pagePossibly taken @patrickballard claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
CapSoftware/Cap#3677 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day