Package com.aspose.tasks
Class FontDescriptor
- java.lang.Object
-
- com.aspose.tasks.FontDescriptor
-
public final class FontDescriptor extends Object
Represents font information.
-
-
Constructor Summary
Constructors Constructor Description FontDescriptor(FontDescriptor font, int style)
Initializes a new instance of theFontDescriptor
class with the specified font and style.FontDescriptor(String fontFamily, float size)
Initializes a new instance of theFontDescriptor
class with the specified font family and size.FontDescriptor(String fontFamily, float size, int style)
Initializes a new instance of theFontDescriptor
class with the specified font family, size and style.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFontFamily()
Gets the name of the font's family.float
getSize()
Gets size of the font.int
getStyle()
Gets style of the font.
-
-
-
Constructor Detail
-
FontDescriptor
public FontDescriptor(String fontFamily, float size)
Initializes a new instance of the
FontDescriptor
class with the specified font family and size.- Parameters:
fontFamily
- Name of the font family.size
- Size of the font.
-
FontDescriptor
public FontDescriptor(String fontFamily, float size, int style)
Initializes a new instance of the
FontDescriptor
class with the specified font family, size and style.- Parameters:
fontFamily
- Name of the font family.size
- Size of the font.style
- Style of the font.
-
FontDescriptor
public FontDescriptor(FontDescriptor font, int style)
Initializes a new instance of the
FontDescriptor
class with the specified font and style.- Parameters:
font
- Instance ofFontDescriptor
to copy.style
- Style of the font.
-
-
Method Detail
-
getFontFamily
public final String getFontFamily()
Gets the name of the font's family.
- Returns:
- the name of the font's family.
-
getSize
public final float getSize()
Gets size of the font.
- Returns:
- size of the font.
-
getStyle
public final int getStyle()
Gets style of the font.
- Returns:
- style of the font.
-
-