public class RtfFont extends Font
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
familyName
Deprecated.
The font family name of this RtfFont
|
BOLD, BOLDITALIC, COURIER, DEFAULTSIZE, HELVETICA, ITALIC, NORMAL, STRIKETHRU, SYMBOL, TIMES_ROMAN, UNDEFINED, UNDERLINE, ZAPFDINGBATS
Constructor and Description |
---|
RtfFont(java.lang.String familyName)
Deprecated.
Constructs a RtfFont
|
RtfFont(java.lang.String familyName,
float size)
Deprecated.
Constructs a RtfFont
|
RtfFont(java.lang.String familyName,
float size,
int style)
Deprecated.
Constructs a RtfFont
|
RtfFont(java.lang.String familyName,
float size,
int style,
java.awt.Color color)
Deprecated.
Constructs a RtfFont
|
Modifier and Type | Method and Description |
---|---|
Font |
difference(Font font)
Deprecated.
Replaces the attributes that are equal to null with
the attributes of a given font.
|
java.lang.String |
getFamilyname()
Deprecated.
Gets the familyname as a String.
|
color, compareTo, family, getBaseFont, getCalculatedBaseFont, getCalculatedSize, getCalculatedStyle, getFamilyIndex, getStyleValue, isBold, isItalic, isStandardFont, isStrikethru, isUnderlined, leading, setColor, setColor, setFamily, setSize, setStyle, setStyle, size, style
private java.lang.String familyName
public RtfFont(java.lang.String familyName)
familyName
- The family name of this RtfFontpublic RtfFont(java.lang.String familyName, float size)
familyName
- The font family name of this RtfFontsize
- The font size of this RtfFontpublic RtfFont(java.lang.String familyName, float size, int style)
familyName
- The font family name of this RtfFontsize
- The font size of this RtfFontstyle
- The font style of this RtfFontpublic RtfFont(java.lang.String familyName, float size, int style, java.awt.Color color)
familyName
- The font family name of this RtfFontsize
- The font size of this RtfFontstyle
- The font style of this RtfFontcolor
- The font color of this RtfFontpublic java.lang.String getFamilyname()
getFamilyname
in class Font
public Font difference(Font font)
difference
in class Font
font
- the font of a bigger element classFont