Skip to content

Conversation

@benoitkugler
Copy link
Contributor

@benoitkugler benoitkugler commented Dec 12, 2025

This PR is a first step towards support for tabs (for #174).

The only API added is the Line.AlignTabs method which aligns all tabs of a given line.

This seems enough if you only wrap text one line at a time (typically using shaping.NewSliceIterator and Wrapper.WrapNextLine), which is my use case.

Supporting tabs when wrapping a whole paragraph seems harder, since we have to align tabs again at the start of every line. The non exported Output.applyTabs should probably be used every time we "consume" a new shaped run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants