Home » iText-2.1.7 » com.lowagie » text » rtf » [javadoc | source]
com.lowagie.text.rtf
public class: RtfFont [javadoc | source]
java.lang.Object
   com.lowagie.text.Font
      com.lowagie.text.rtf.RtfFont

All Implemented Interfaces:
    Comparable

The RtfFont class enables you to add arbitrary Fonts to a rtf document by specifying the font name you want to have. The font has to be installed on the client for this to work. ONLY FOR USE WITH THE RtfWriter NOT with the RtfWriter2.
Fields inherited from com.lowagie.text.Font:
COURIER,  HELVETICA,  TIMES_ROMAN,  SYMBOL,  ZAPFDINGBATS,  NORMAL,  BOLD,  ITALIC,  UNDERLINE,  STRIKETHRU,  BOLDITALIC,  UNDEFINED,  DEFAULTSIZE
Constructor:
 public RtfFont(String familyName) 
    Constructs a RtfFont
    Parameters:
    familyName - The family name of this RtfFont
 public RtfFont(String familyName,
    float size) 
    Constructs a RtfFont
    Parameters:
    familyName - The font family name of this RtfFont
    size - The font size of this RtfFont
 public RtfFont(String familyName,
    float size,
    int style) 
    Constructs a RtfFont
    Parameters:
    familyName - The font family name of this RtfFont
    size - The font size of this RtfFont
    style - The font style of this RtfFont
 public RtfFont(String familyName,
    float size,
    int style,
    Color color) 
    Constructs a RtfFont
    Parameters:
    familyName - The font family name of this RtfFont
    size - The font size of this RtfFont
    style - The font style of this RtfFont
    color - The font color of this RtfFont
Method from com.lowagie.text.rtf.RtfFont Summary:
difference,   getFamilyname
Methods from com.lowagie.text.Font:
compareTo,   difference,   getBaseFont,   getCalculatedBaseFont,   getCalculatedLeading,   getCalculatedSize,   getCalculatedStyle,   getColor,   getFamily,   getFamilyIndex,   getFamilyname,   getSize,   getStyle,   getStyleValue,   isBold,   isItalic,   isStandardFont,   isStrikethru,   isUnderlined,   setColor,   setColor,   setFamily,   setSize,   setStyle,   setStyle
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.rtf.RtfFont Detail:
 public Font difference(Font font) 
    Replaces the attributes that are equal to null with the attributes of a given font.
 public String getFamilyname() 
    Gets the familyname as a String.