Skip to content

Conversation

@CactusPuppy
Copy link
Contributor

This PR attempts to fix #934 by expanding the BBox returned by getCacheBBox for TxtLeaf by half of the element's font size horizontally.

@aarthificial
Copy link
Contributor

Thanks for the fix!
I left a comment regarding line validation in #969

@aarthificial aarthificial merged commit abb0906 into motion-canvas:main Mar 1, 2024
@CactusPuppy CactusPuppy deleted the 934-slanted-fonts-fix branch March 1, 2024 17:52
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.

Slanted fonts can result in characters at the start or end being cut off when opacity is lower than 1 or a shadow is placed on a Txt node

2 participants