com.lowagie.text.rtf.style
Class RtfFontList
java.lang.Object
com.lowagie.text.rtf.RtfElement
com.lowagie.text.rtf.style.RtfFontList
- All Implemented Interfaces:
- RtfBasicElement, RtfExtendedElement
public class RtfFontList
- extends RtfElement
- implements RtfExtendedElement
The RtfFontList stores the list of fonts used in the rtf document. It also
has methods for writing this list to the document
Version: $Id: RtfFontList.java,v 1.17 2005/12/24 13:10:37 hallm Exp $
- Author:
- Mark Hall (mhall@edu.uni-klu.ac.at)
Field Summary |
static byte[] |
FONT_NUMBER
Constant for the font number |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FONT_NUMBER
public static final byte[] FONT_NUMBER
- Constant for the font number
RtfFontList
public RtfFontList(RtfDocument doc)
- Creates a RtfFontList
- Parameters:
doc
- The RtfDocument this RtfFontList belongs to
getFontNumber
public int getFontNumber(RtfFont font)
- Gets the index of the font in the list of fonts. If the font does not
exist in the list, it is added.
- Parameters:
font
- The font to get the id for
- Returns:
- The index of the font
writeDefinition
public byte[] writeDefinition()
- Writes the definition of the font list
- Specified by:
writeDefinition
in interface RtfExtendedElement
- Returns:
- A byte array with the definition of the font list
Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.