public class RtfFontList extends RtfElement implements RtfExtendedElement
| Modifier and Type | Field and Description |
|---|---|
private static byte[] |
DEFAULT_FONT
Constant for the default font
|
static byte[] |
FONT_NUMBER
Constant for the font number
|
private static byte[] |
FONT_TABLE
Constant for the font table
|
private java.util.ArrayList |
fontList
The list of fonts
|
document, inHeader, inTableCLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR| Constructor and Description |
|---|
RtfFontList(RtfDocument doc)
Creates a RtfFontList
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFontNumber(RtfFont font)
Gets the index of the font in the list of fonts.
|
byte[] |
writeDefinition()
Writes the definition of the font list
|
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetInHeader, setInTable, setRtfDocument, writeprivate static final byte[] DEFAULT_FONT
private static final byte[] FONT_TABLE
public static final byte[] FONT_NUMBER
private java.util.ArrayList fontList
public RtfFontList(RtfDocument doc)
doc - The RtfDocument this RtfFontList belongs topublic int getFontNumber(RtfFont font)
font - The font to get the id forpublic byte[] writeDefinition()
writeDefinition in interface RtfExtendedElement