
**Inheritance:**
java.lang.Object
```
public final class FontDescriptor
```

Represents font information.
## Constructors

| Constructor | Description |
| --- | --- |
| [FontDescriptor(String fontFamily, float size)](#FontDescriptor-java.lang.String-float-) | Initializes a new instance of the [FontDescriptor](../../com.aspose.tasks/fontdescriptor) class with the specified font family and size. |
| [FontDescriptor(String fontFamily, float size, int style)](#FontDescriptor-java.lang.String-float-int-) | Initializes a new instance of the [FontDescriptor](../../com.aspose.tasks/fontdescriptor) class with the specified font family, size and style. |
| [FontDescriptor(FontDescriptor font, int style)](#FontDescriptor-com.aspose.tasks.FontDescriptor-int-) | Initializes a new instance of the [FontDescriptor](../../com.aspose.tasks/fontdescriptor) class with the specified font and style. |
## Methods

| Method | Description |
| --- | --- |
| [getFontFamily()](#getFontFamily--) | Gets the name of the font's family. |
| [getSize()](#getSize--) | Gets size of the font. |
| [getStyle()](#getStyle--) | Gets style of the font. |
### FontDescriptor(String fontFamily, float size) {#FontDescriptor-java.lang.String-float-}
```
public FontDescriptor(String fontFamily, float size)
```


Initializes a new instance of the [FontDescriptor](../../com.aspose.tasks/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) {#FontDescriptor-java.lang.String-float-int-}
```
public FontDescriptor(String fontFamily, float size, int style)
```


Initializes a new instance of the [FontDescriptor](../../com.aspose.tasks/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) {#FontDescriptor-com.aspose.tasks.FontDescriptor-int-}
```
public FontDescriptor(FontDescriptor font, int style)
```


Initializes a new instance of the [FontDescriptor](../../com.aspose.tasks/fontdescriptor) class with the specified font and style.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| font | [FontDescriptor](../../com.aspose.tasks/fontdescriptor) | Instance of [FontDescriptor](../../com.aspose.tasks/fontdescriptor) to copy. |
| style | int | Style of the font. |

### getFontFamily() {#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() {#getSize--}
```
public final float getSize()
```


Gets size of the font.

**Returns:**
float - size of the font.
### getStyle() {#getStyle--}
```
public final int getStyle()
```


Gets style of the font.

**Returns:**
int - style of the font.
