com.lowagie.text.rtf
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.Field Summary | |
---|---|
String | familyName
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 | |
---|---|
Font | difference(Font font)
Replaces the attributes that are equal to null with
the attributes of a given font.
|
String | getFamilyname()
Gets the familyname as a String.
|
Parameters: familyName The family name of this RtfFont
Parameters: familyName The font family name of this RtfFont size The font size of this RtfFont
Parameters: familyName The font family name of this RtfFont size The font size of this RtfFont style The font style of this 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
Parameters: font the font of a bigger element class
Returns: a Font
Returns: the familyname