Skip to content

[Feature]: Implement justify alignment of text in no-space scenarios #10856

@ccOfHome

Description

@ccOfHome

CheckList

  • I agree to follow this project's Code of Conduct
  • I have read and followed the Contributing Guide
  • I have searched and referenced existing issues, feature requests and discussions
  • I am filing a FEATURE request.

Description

When I set the textAlign property to justify on a Text object, text or text with spaces behaves correctly, but text or text without spaces still has the same style as left. I want to support justify alignment for text without spaces.

Here's an example:

Left Alignment

Image

Justify Alignment

Image

In other language scenarios

Left Alignment

Image

Justify Alignment

Image

Current State

Currently, when I set the textAlign property of a Text object to justify, text or language without spaces still has the same style as left.
I'm trying to optimize this issue. If you think this is achievable.

Additional Context

My plan is to implement justify alignment for text boxes containing only one line of text without spaces when textAlign is set to justify, for lines other than the last line, while the last line remains left-aligned. I'd appreciate any insights you might have.

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