FontDescriptor
Contents
[
Hide
]Inheritance: java.lang.Object
public final class FontDescriptor
Represents font information.
Constructors
Constructor | Description |
---|---|
FontDescriptor(String fontFamily, float size) | Initializes a new instance of the FontDescriptor class with the specified font family and size. |
FontDescriptor(String fontFamily, float size, int style) | Initializes a new instance of the FontDescriptor class with the specified font family, size and style. |
FontDescriptor(FontDescriptor font, int style) | Initializes a new instance of the FontDescriptor class with the specified font and style. |
Methods
Method | Description |
---|---|
getFontFamily() | Gets the name of the font’s family. |
getSize() | Gets size of the font. |
getStyle() | Gets style of the font. |
FontDescriptor(String fontFamily, float size)
public FontDescriptor(String fontFamily, float size)
Initializes a new instance of the FontDescriptor class with the specified font family and size.
Parameters:
Parameter | Type | Description |
---|---|---|
fontFamily | java.lang.String | Name of the font family. |
size | float | Size of the font. |
FontDescriptor(String fontFamily, float size, int style)
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:
Parameter | Type | Description |
---|---|---|
fontFamily | java.lang.String | Name of the font family. |
size | float | Size of the font. |
style | int | Style of the font. |
FontDescriptor(FontDescriptor font, int style)
public FontDescriptor(FontDescriptor font, int style)
Initializes a new instance of the FontDescriptor class with the specified font and style.
Parameters:
Parameter | Type | Description |
---|---|---|
font | FontDescriptor | Instance of FontDescriptor to copy. |
style | int | Style of the font. |
getFontFamily()
public final String getFontFamily()
Gets the name of the font’s family.
Returns: java.lang.String - the name of the font’s family.
getSize()
public final float getSize()
Gets size of the font.
Returns: float - size of the font.
getStyle()
public final int getStyle()
Gets style of the font.
Returns: int - style of the font.