public class FontSelector extends Object
The built in fonts "Symbol" and "ZapfDingbats", if used, have a special encoding to allow the characters to be referred by Unicode.
| Constructor and Description |
|---|
FontSelector() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFont(Font font)
Adds a
Font to be searched for valid characters. |
Phrase |
process(String text)
Process the text so that it will render with a combination of fonts if needed.
|
void |
setDefaultColor(Color color)
change the color of default font in
FontSelector. |
void |
setDefaultSize(float size)
change the size of default font in
FontSelector. |
public void setDefaultColor(Color color)
FontSelector.color - the Color of default fontpublic void setDefaultSize(float size)
FontSelector.size - the size of default fontpublic void addFont(Font font)
Font to be searched for valid characters.font - the FontCopyright © 2024. All rights reserved.