Class FontRegistry
java.lang.Object
de.pianoman911.mapengine.api.util.FontRegistry
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImage
convertText
(String text, Font font, Color color) Convert the specified string text to an image with the given font and color, which is anti-aliased (less rough edges).static BufferedImage
convertText
(String text, Font font, Color color, boolean antiAliasing) Convert the specified string text to an image with the given font and color.static FullSpacedColorBuffer
convertText2Bytes
(String text, Font font, Color color) Rendered the specified text to an argb color bufferstatic FullSpacedColorBuffer
convertText2Bytes
(String text, Font font, Color color, boolean antiAliasing) Rendered the specified text to an argb color buffer
-
Field Details
-
DEFAULT
-
EMPTY_BUFFER
-
-
Method Details
-
convertText
Convert the specified string text to an image with the given font and color, which is anti-aliased (less rough edges).- Parameters:
text
- the text to renderfont
- the font to use for the textcolor
- the color to use for the text- Returns:
- a rendered image of the specified text
-
convertText
Convert the specified string text to an image with the given font and color.- Parameters:
text
- the text to renderfont
- the font to use for the textcolor
- the color to use for the textantiAliasing
- if antialiasing should be enabled (less rough edges)- Returns:
- a rendered image of the specified text
-
convertText2Bytes
Rendered the specified text to an argb color buffer- See Also:
-
convertText2Bytes
public static FullSpacedColorBuffer convertText2Bytes(String text, Font font, Color color, boolean antiAliasing) Rendered the specified text to an argb color buffer- See Also:
-