@FunctionalInterface @Environment(value=CLIENT) public static interface TextHandler.WidthRetriever
Modifier and Type | Method and Description |
---|---|
float |
getWidth(int codePoint,
Style style)
Returns the width of a character.
|
float getWidth(int codePoint, Style style)
codePoint
- the character's code pointstyle
- the style of the character, carrying font and formatting information