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

Refactor text #42

Merged
merged 48 commits into from
Jan 2, 2025
Merged

Refactor text #42

merged 48 commits into from
Jan 2, 2025

Conversation

famoser
Copy link
Owner

@famoser famoser commented Jan 1, 2025

No description provided.

This refactoring has the following targets:
- Remove duplication between "Paragraph" and "Text", keep "Paragraph" structure only
- Rename "Paragraph" structure to more clear "Text"
- Treat "Text" as a flow element, introduce "TextBlock" after layouting which is a content element
- Remove duplication in measuring and allocation

With this refactoring, the following features were prepared
- Introduce alignment of text (center, right, justified)
- Introduce structure tagging of text
Refactor towards defining line height in the layout only
Fix text measurer
@famoser famoser merged commit 2e44f28 into main Jan 2, 2025
1 check passed
@famoser famoser deleted the refactor-text branch January 2, 2025 11:04
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

Successfully merging this pull request may close these issues.

1 participant