Skip to content

Text: Add support for limiting the number of logical lines #10799

@tronical

Description

@tronical

Feature Description

It would be useful if the Text element had a way of limiting the number of visible lines, regardless of how many the source text produces.

Product Impact

One question that's open to me is: Should a max-lines property apply to visible lines or logical lines?

I'm leaning towards the former, so it's a visual property. It means that Text { text: "very long line long long long\nnext"; max-lines: 1; might end up showing only a part of very long line.

(This might be a silly thing to ask in the first please, so apologies if this is obvious :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:textText rendering, fonts, Text input (mS,bF)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions