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.
Modifier and Type | Field and Description |
---|---|
protected Font |
currentFont |
protected ArrayList<Font> |
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(String text)
Process the text so that it will render with a combination of fonts
if needed.
|
protected Chunk |
processChar(char[] cc,
int k,
StringBuffer sb) |
public void addFont(Font font)
Font
to be searched for valid characters.font
- the Font
public Phrase process(String text)
text
- the textPhrase
with one or more chunksprotected Chunk processChar(char[] cc, int k, StringBuffer sb)
Copyright © 2019. All rights reserved.