-
Notifications
You must be signed in to change notification settings - Fork 3
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
Footer is always longer than header with Pagination #3
Comments
If you test in the console, they will match up ;) This is because characters have different pixel lengths in the default Minecraft font. |
That makes sense, but that's a bit difficult isn't it? Doesn't that mean if you use any non-minecraft language selection (I forget what they're called currently, Unicode fonts maybe?) it'd break if you automatically adjusted for the Minecraft font? |
Yes, we could adjust for the Minecraft chat pixel lengths - but then it would be wrong in console, or if you used a different font in your resource pack. |
Alright. I think I have a few hacky solutions to try then now that I understand the problem a bit better, though maybe it'd be nice to have some ability to disable the extra character padding? I don't think I saw anything obvious when I was using the API, though maybe setting styleandcharacter character to null might be it? Anyway, thank you for the information! |
This may be a mistake on my end, attempting to integrate this API with my recent works and having some difficulty with pagination. No matter what I attempt to do, the footer is always slightly longer than the header. I've attempted at this point any number of fixes and tried digging for some potential solutions.
I do know this is still a very new feature, so I figured I'd at least provide a bug report for my findings to see if it helps
Version:
3.0.2
Using
text-serializer-gson
,text-feature-pagination
, andtext-api
withtext-bukkit-adapter
Platform is Paper
Width: 53
Width: 50
With longer title, width 50
Width 50 with dummy data to cause pagination
smol title
Code (In Kotlin) ((An abomination of formatting, I apologize in advance))
The text was updated successfully, but these errors were encountered: