Skip to content

Support setting tabs width #174

@benoitkugler

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions