public class FontSelector
extends java.lang.Object
The built in fonts "Symbol" and "ZapfDingbats", if used, have a special encoding to allow the characters to be referred by Unicode.
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList |
fonts |
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(java.lang.String text)
Process the text so that it will render with a combination of fonts
if needed.
|
public void addFont(Font font)
Font
to be searched for valid characters.font
- the Font
public Phrase process(java.lang.String text)
text
- the textPhrase
with one or more chunks