**Inheritance:**
java.lang.Object, [com.aspose.imaging.DisposableObject](../../com.aspose.imaging/disposableobject), [com.aspose.imaging.fileformats.cdr.objects.CdrObject](../../com.aspose.imaging.fileformats.cdr.objects/cdrobject), [com.aspose.imaging.fileformats.cdr.objects.CdrDictionaryItem](../../com.aspose.imaging.fileformats.cdr.objects/cdrdictionaryitem)
```
public class CdrFont extends CdrDictionaryItem
```

the cdr Font
## Constructors

| Constructor | Description |
| --- | --- |
| [CdrFont()](#CdrFont--) |  |
## Methods

| Method | Description |
| --- | --- |
| [getFontName()](#getFontName--) | Gets the name of the font. |
| [setFontName(String value)](#setFontName-java.lang.String-) | Sets the name of the font. |
| [getEncoding()](#getEncoding--) | Gets the encoding. |
| [setEncoding(short value)](#setEncoding-short-) | Sets the encoding. |
### CdrFont() {#CdrFont--}
```
public CdrFont()
```


### getFontName() {#getFontName--}
```
public final String getFontName()
```


Gets the name of the font.

**Returns:**
java.lang.String - the name of the font.
### setFontName(String value) {#setFontName-java.lang.String-}
```
public final void setFontName(String value)
```


Sets the name of the font.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String | the name of the font. |

### getEncoding() {#getEncoding--}
```
public final short getEncoding()
```


Gets the encoding.

**Returns:**
short - the encoding.
### setEncoding(short value) {#setEncoding-short-}
```
public final void setEncoding(short value)
```


Sets the encoding.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | short | the encoding. |

