linebender / linebender/skribo
How to use Skribo for text layout
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 335
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to use LayoutSession and do text line breaking using it. However, the public API only exposes the `offset` values which isn't based on the `advance` and there is no evident way of getting the width of a run when calling `LayoutSession::iter_substr`.
Is there something I'm missing? I may create a PR that adds what I need if not.
Contributor guide
No contributing guide indexed for this repository
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
Use LayoutSession and LayoutSession::iter_substr as the entry points. Trace how the exposed offset and advance values relate to text runs and line breaking, then determine what public information is missing. Done means the intended way to obtain run width is clear or the required API change is precisely scoped.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100