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 |
protected ArrayList<Font> |
unsupportedFonts |
Constructor and Description |
---|
FontSelector() |
Modifier and Type | Method and Description |
---|---|
void |
addFont(Font font)
Adds a Font to be searched for valid characters.
|
protected Font |
getFont(int i) |
protected int |
getSize() |
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) |
protected Font currentFont
public void addFont(Font font)
Font
to be searched for valid characters.
font
- the Font
public Phrase process(String text)
text
- the text
Phrase
with one or more chunks
protected Chunk processChar(char[] cc, int k, StringBuffer sb)
protected int getSize()
protected Font getFont(int i)
Copyright © 1998–2019. All rights reserved.