linebender / linebender/parley

Weird layout when wrapping a long word

Open
#82 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
736
Forks
120
Avg merge
1d 3h
Merged PRs (30d)
53

Description

The text is "ABCD" * 5
![demo](https://github.com/linebender/parley/assets/53217585/324b7e36-aeed-4c42-bc03-00930781a8ef)
Some characters advance too far and not visible within the width of layout.
([code](https://github.com/EnderHane/randomrepo/tree/main/202407041310-00))
Is it a bug or a corner case not to be considered?

Contributor guide

No contributing guide indexed for this repository

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 with the linked reproduction code and compare its long-word wrapping behavior with the reported layout width. Trace the wrapping and glyph-positioning path that produces characters extending beyond the width, then confirm the fix with a regression case where the repeated word remains within the layout bounds.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.