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

text alignment #74

Closed
albreax opened this issue Aug 7, 2014 · 2 comments
Closed

text alignment #74

albreax opened this issue Aug 7, 2014 · 2 comments

Comments

@albreax
Copy link

albreax commented Aug 7, 2014

Hi Tomas,
i tried to use text alignment with -fx-text-alignment. But it doesn't work. Is there a possibility to work with text alignment?
Thanks

@TomasMikula
Copy link
Member

Hi Albrecht,
per paragraph text alignment is currently not supported. You should be able to set the alignment for the whole document, but I just tested it and it doesn't quite work. First, I had to use the * selector

.styled-text-area * { -fx-text-alignment: center; }

because .text-flow did not work:

.styled-text-area .text-flow { -fx-text-alignment: center; }

Secondly, only left and justify alignments work. With center, I'm getting strange font rendering artifacts and with right the paragraph temporarily disappears.

@TomasMikula
Copy link
Member

The font rendering artifacts are now fixed. You can now set text alignment for the whole text area as described above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants