com.lowagie.text.rtf

Class RtfFont

public class RtfFont extends Font

Deprecated: Please move to the RtfWriter2 and associated classes. com.lowagie.text.rtf.style.RtfFont replaces the functionality of this class.

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.

Author: Mark Hall (mhall@edu.uni-klu.ac.at)

Field Summary
StringfamilyName
The font family name of this RtfFont
Constructor Summary
RtfFont(String familyName)
Constructs a RtfFont
RtfFont(String familyName, float size)
Constructs a RtfFont
RtfFont(String familyName, float size, int style)
Constructs a RtfFont
RtfFont(String familyName, float size, int style, Color color)
Constructs a RtfFont
Method Summary
Fontdifference(Font font)
Replaces the attributes that are equal to null with the attributes of a given font.
StringgetFamilyname()
Gets the familyname as a String.

Field Detail

familyName

private String familyName
The font family name of this RtfFont

Constructor Detail

RtfFont

public RtfFont(String familyName)
Constructs a RtfFont

Parameters: familyName The family name of this RtfFont

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

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

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 Detail

difference

public Font difference(Font font)
Replaces the attributes that are equal to null with the attributes of a given font.

Parameters: font the font of a bigger element class

Returns: a Font

getFamilyname

public String getFamilyname()
Gets the familyname as a String.

Returns: the familyname