Skip to content

Fix for overlapping text in some books#2792

Open
Vwing wants to merge 1 commit into
Interkarma:masterfrom
Vwing:fix-overlapping-text
Open

Fix for overlapping text in some books#2792
Vwing wants to merge 1 commit into
Interkarma:masterfrom
Vwing:fix-overlapping-text

Conversation

@Vwing
Copy link
Copy Markdown

@Vwing Vwing commented May 27, 2026

#2619 introduced an issue with books sometimes having overlapping text.

Example: The Real Barenziah, Part V

image

The fix was a single line. Just needed to set the TextLabel's parent to the pagePanel before calculating its size.

After the fix:
image

@KABoissonneault
Copy link
Copy Markdown
Collaborator

Does this only happen with SDF fonts? What aspect ratio have you tested? I figured it's worth having if it fixes one case, I'm just curious if you've tested the other scenarios (no SDF font, faked aspect ratios), both before and after.

@Vwing
Copy link
Copy Markdown
Author

Vwing commented May 28, 2026

Different aspect ratios don't seem to change anything; the books end up always drawing at the same size, drawing off the screen if the screen is too skinny.

The bug only affects SDF fonts 👍

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.

2 participants