Package solar.squares.pixelwidth
Interface CharacterWidthFunction
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Deprecated @FunctionalInterface public interface CharacterWidthFunction
Deprecated.for removal since 1.1.0, useCharacterWidthFunctioninsteadA function that takes a character(represented by its UTF-16 codepoint) and aStyleand returns the characters width as anint.Should return
-1if the character width is unknown to this function- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description floatwidthOf(int codepoint, net.kyori.adventure.text.format.Style style)Deprecated.for removal since 1.1.0, useCharacterWidthFunction.widthOf(int, Style)instead
-
-
-
Method Detail
-
widthOf
@Deprecated float widthOf(int codepoint, net.kyori.adventure.text.format.Style style)
Deprecated.for removal since 1.1.0, useCharacterWidthFunction.widthOf(int, Style)insteadGets the width for the given character(represented by its UTF-16 codepoint).chars will automatically be converted to codepoints.- Since:
- 1.0.0
-
-