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 | Description |
---|---|---|
protected Font |
currentFont |
|
protected java.util.ArrayList<Font> |
fonts |
|
protected java.util.ArrayList<Font> |
unsupportedFonts |
Constructor | Description |
---|---|
FontSelector() |
Modifier and Type | Method | Description |
---|---|---|
void |
addFont(Font font) |
Adds a
Font to be searched for valid characters. |
protected Font |
getFont(int i) |
|
protected int |
getSize() |
|
Phrase |
process(java.lang.String text) |
Process the text so that it will render with a combination of fonts
if needed.
|
protected Chunk |
processChar(char[] cc,
int k,
java.lang.StringBuffer sb) |
protected java.util.ArrayList<Font> fonts
protected java.util.ArrayList<Font> unsupportedFonts
protected Font currentFont
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 chunksprotected Chunk processChar(char[] cc, int k, java.lang.StringBuffer sb)
protected int getSize()
protected Font getFont(int i)
Copyright © 1998–2018. All rights reserved.