-
Notifications
You must be signed in to change notification settings - Fork 113
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
feature request: Add text justification #76
Comments
On the iced Discord (under discussions/Advanced Text Handling) we briefly discussed adding justification and alignment to cosmic-text's It's possible to work around it after layout has already happened by shifting glyphs around in the final layout line (I use this technique for centering text currently), but obviously that's not ideal. |
Closed by #78 |
I think the system @hojjatabdollahi designed that each buffer line has alignment works best. It matches what was done for wrapping, since we cannot do spans of test inside a paragraph with different alignment as far as I know. |
If there are concerns with that implementation, please open another issue. |
I am currently developing a
cosmic-text
-based implementation of thepiet
text API, see here. The only bits frompiet
that are currently unimplemented are variable font sizes (already raised in #64) and text justification.piet
expects there to be utilities for text justification, with start (default), right, center and justified alignments. See this enum for more information.Are there any plans to add text alignment to
cosmic-text
?The text was updated successfully, but these errors were encountered: