Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can justify text #69

Closed
WorthPly opened this issue Feb 22, 2019 · 6 comments · Fixed by #112
Closed

How can justify text #69

WorthPly opened this issue Feb 22, 2019 · 6 comments · Fixed by #112
Labels
enhancement New feature or request low-priority

Comments

@WorthPly
Copy link

Hello guys,

i want to know is their any way to justify the text, how can i user TextAlign.justify in this lib.

Thanks.

@Sub6Resources
Copy link
Owner

There isn't currently a way to justify text in this library. If this issue gets enough 👍s, I'll look into implementing it, or anybody is welcome to open a pull request at any time.

@Sub6Resources Sub6Resources added enhancement New feature or request low-priority labels Mar 12, 2019
@GeertJohan
Copy link
Contributor

How many 👍s are "enought 👍s" ? 😄
Any pointers / tips on how to implement this? Where to start?

@andreyeurope
Copy link

Do you want to justify HTML parsed by the richText parser or by the default parser?

@GeertJohan
Copy link
Contributor

In my case the rich text parser. But I guess both should be available.

@andreyeurope
Copy link

In the case of the default parser, you can easily do it yourself by using the custom parser.
Just create a custom parser for p HTML element consisting of a Text widget and set textAlign to what you need.

I will look into implementing it in the richText parser. It might be useful for me as well.

@andreyeurope
Copy link

I was thinking maybe having a custom properties attribute for each of the heading elements and the paragraph element would be useful, so you can fine control each element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low-priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants