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

Label needs horizontal alignment #132

Open
ecton opened this issue Jan 11, 2024 · 0 comments
Open

Label needs horizontal alignment #132

ecton opened this issue Jan 11, 2024 · 0 comments

Comments

@ecton
Copy link
Member

ecton commented Jan 11, 2024

(Related to #128)

Currently, label draws its text using TextOrigin::Center. This isn't really correct, as it implies that we're centering the text. However, it allows a reasonable default behavior, and works well with align_left/align_right. But, if the text wraps, the wrapped lines are not actually aligned respective to the containing element. They are left-aligned.

The real solution is to support horizontal alignment and have Label honor the current setting. This will likely have changes that cascade into Kludgine since that's where text layout occurs and it doesn't support these alignment options either.

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

No branches or pull requests

1 participant