Package com.palmergames.bukkit.util
Class FontUtil
java.lang.Object
com.palmergames.bukkit.util.FontUtil
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isValidMinecraftFont
(String text) static float
measureWidth
(char source) static float
measureWidth
(char source, net.kyori.adventure.text.format.Style style) static float
measureWidth
(String source) static float
measureWidth
(String source, net.kyori.adventure.text.format.Style style) static float
measureWidth
(net.kyori.adventure.text.Component source)
-
Field Details
-
font
@Internal public static final org.bukkit.map.MinecraftFont font
-
-
Constructor Details
-
FontUtil
public FontUtil()
-
-
Method Details
-
measureWidth
public static float measureWidth(net.kyori.adventure.text.Component source) -
measureWidth
-
measureWidth
-
measureWidth
public static float measureWidth(char source) -
measureWidth
public static float measureWidth(char source, net.kyori.adventure.text.format.Style style) -
isValidMinecraftFont
-