We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The ability to find the pixel-width of a single character, or the content of an entire component (and children).
public interface PixelWidthSource { int width(final @NonNull Component component); int width(final char character); }
The text was updated successfully, but these errors were encountered:
My project has an implementation for pixel width you or anyone are free to use, modify, or redistribute:
https://github.com/Electroid/PGM/blob/389839a654c267df55113a32377e1d06a73c4b8e/util-bukkit/src/main/java/tc/oc/util/bukkit/component/ComponentUtils.java#L17 (or anything else in the linked class)
Sorry, something went wrong.
Based on discussions in #262, we've decided this makes more sense to be released as an external library, unless Mojang changes what they offer us.
zml2008
Successfully merging a pull request may close this issue.
The ability to find the pixel-width of a single character, or the content of an entire component (and children).
The text was updated successfully, but these errors were encountered: