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

Overhaul text layout #2162

Merged
merged 14 commits into from
Nov 26, 2022
Merged

Overhaul text layout #2162

merged 14 commits into from
Nov 26, 2022

Conversation

gpeal
Copy link
Collaborator

@gpeal gpeal commented Nov 12, 2022

This PR completely rewrites the text layout algorithm. It should be more accurate in most cases now. Center and right justifications as well as alignment of paragraph text and text wrapping should all be much more accurate.

Note that there may be an outstanding issue with the y position of paragraph text which affects #1758 but I have been unable to reproduce it with an AEP file for debugging.

Fixes #1479
Fixes #1758
Fixes #397
Likely fixes #2135

@LottieSnapshotBot
Copy link

Snapshot Tests
28: Report Diff

@LottieSnapshotBot
Copy link

Snapshot Tests
28: Report Diff

@gpeal gpeal force-pushed the gpeal/text-improvement branch 2 times, most recently from 5d8d77f to fa5c87f Compare November 26, 2022 01:42
@gpeal gpeal changed the title Improve multiline text positioning Overlay text layout Nov 26, 2022
@gpeal gpeal changed the title Overlay text layout Overhaul text layout Nov 26, 2022
@LottieSnapshotBot
Copy link

Snapshot Tests
28: Report Diff

@LottieSnapshotBot
Copy link

Snapshot Tests
28: Report Diff

@LottieSnapshotBot
Copy link

Snapshot Tests
28: Report Diff

@LottieSnapshotBot
Copy link

Snapshot Tests
28: Report Diff

@LottieSnapshotBot
Copy link

Snapshot Tests
28: Report Diff

@LottieSnapshotBot
Copy link

Snapshot Tests
28: Report Diff

@gpeal gpeal merged commit 1cfb73e into master Nov 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants