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.
|
void |
writeContent(java.io.OutputStream out)
unused
|
void |
writeDefinition(java.io.OutputStream result)
Writes the definition of the font list
|
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocumentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetInHeader, setInTable, setRtfDocumentprivate 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 void writeContent(java.io.OutputStream out)
throws java.io.IOException
writeContent in interface RtfBasicElementwriteContent in class RtfElementout - The OutputStream to write the content tojava.io.IOExceptionpublic int getFontNumber(RtfFont font)
font - The font to get the id forpublic void writeDefinition(java.io.OutputStream result)
throws java.io.IOException
writeDefinition in interface RtfExtendedElementresult - The OutputStream to write the element definition tojava.io.IOException