public class CartographerFont
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Font |
font |
| Constructor and Description |
|---|
CartographerFont(java.awt.Font font)
Construct with a font.
|
| Modifier and Type | Method and Description |
|---|---|
static java.awt.Font |
getFontFromSystem(java.lang.String name) |
java.awt.image.BufferedImage |
write(java.lang.String message,
java.awt.Color color,
float size,
FontStyle... styles)
Create a new image from the message, color, size, and styles provided.
|
public CartographerFont(java.awt.Font font)
font - Cannot be null.public java.awt.image.BufferedImage write(java.lang.String message,
java.awt.Color color,
float size,
FontStyle... styles)
message - The message to write. Supports special characters.color - Cannot be null.size - Size as defined by the java.styles - Styles as defined by java.public static java.awt.Font getFontFromSystem(java.lang.String name)