---
title: "RtfFont"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf.rtf.rtfstructure/rtffont/"
product: "Aspose.PDF for Java API Reference"
description: "Stores a single font definition from the font table."
---

**Inheritance:**
java.lang.Object, com.aspose.pdf.rtf.rtfstructure.RtfFont

```
public class RtfFont extends Object
```

Stores a single font definition from the font table.

## Constructors

| Constructor | Description |
| --- | --- |
| [RtfFont](#RtfFont-int-java.lang.String-) |  |

## Methods

| Method | Description |
| --- | --- |
| [getCharSet](#getCharSet--) | Specifies the character set of a font in the font table. |
| [getFontFamily](#getFontFamily--) | Font family of font. |
| [getIndex](#getIndex--) | Index in font table. |
| [getName](#getName--) | Name of font. |
| [setCharSet](#setCharSet-int-) | Specifies the character set of a font in the font table. |
| [setFontFamily](#setFontFamily-java.lang.String-) | Font family of font. |
| [setIndex](#setIndex-int-) | Index in font table. |
| [setName](#setName-java.lang.String-) | Name of font. |

### RtfFont {#RtfFont-int-java.lang.String-}


### getCharSet {#getCharSet--}
```
public final int getCharSet()
```

Specifies the character set of a font in the font table.

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

Font family of font.

### getIndex {#getIndex--}
```
public final int getIndex()
```

Index in font table.

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

Name of font.

### setCharSet {#setCharSet-int-}
```
public final void setCharSet(int value)
```

Specifies the character set of a font in the font table.

### setFontFamily {#setFontFamily-java.lang.String-}
Font family of font.

### setIndex {#setIndex-int-}
```
public final void setIndex(int value)
```

Index in font table.

### setName {#setName-java.lang.String-}
Name of font.
