@Deprecated public final class Font extends Object
Class representing a font.
Constructor and Description |
---|
Font(String fontFamilyName,
float size)
Deprecated.
Initializes a new instance of the
Font class. |
Font(String fontFamilyName,
float size,
int style)
Deprecated.
Initializes a new instance of the
Font class. |
Modifier and Type | Method and Description |
---|---|
boolean |
getBold()
Deprecated.
Gets a value indicating whether the font is bold.
|
String |
getFamilyName()
Deprecated.
Gets the family name of this
Font . |
boolean |
getItalic()
Deprecated.
Gets a value indicating whether the font is italic.
|
float |
getSize()
Deprecated.
Gets the size of this
Font . |
boolean |
getStrikeout()
Deprecated.
Gets a value indicating whether the font specifies a horizontal line through the font.
|
int |
getStyle()
Deprecated.
Gets the style information for this
Font . |
boolean |
getUnderline()
Deprecated.
Gets a value indicating whether the font is underlined.
|
public Font(String fontFamilyName, float size)
Initializes a new instance of the Font
class.
fontFamilyName
- The font family name.size
- The size of the new font.public Font(String fontFamilyName, float size, int style)
Initializes a new instance of the Font
class.
fontFamilyName
- The font family name.size
- The size of the new font.style
- The style of the new font.public final String getFamilyName()
Gets the family name of this Font
.
Font
.public final float getSize()
Gets the size of this Font
.
Font
.public final int getStyle()
Gets the style information for this Font
.
Font
. Default value is FontStyle.Regular
(normal text).public final boolean getBold()
Gets a value indicating whether the font is bold.
public final boolean getItalic()
Gets a value indicating whether the font is italic.
public final boolean getStrikeout()
Gets a value indicating whether the font specifies a horizontal line through the font.
public final boolean getUnderline()
Gets a value indicating whether the font is underlined.