Skip to content

Support setting tabs width #174

Description

@benoitkugler

I would like to support setting the width of tabs in a run, following the CSS 'tab-size' property.

That could be exposed with the method

// SetTabsWidth alters the run, replacing the width of every tab character (U+0009).
//
// [text] is the input slice used to create the run.
func (*Output) SetTabsWidth(text []rune, spacing fixed.Int26_6)

(At a first glance, the implementation would be somewhat similar to Output.AddWordSpacing)

What do you think ?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions