
## Font class

Encapsulates the font object used in a spreadsheet.

## Methods

| Name | Description |
| --- | --- |
| [equals(font)](#equals) | Checks if two fonts are equals. |
| [getArgbColor()](#getargbcolor) | Gets and sets the color with a 32-bit ARGB value. |
| [getCapsType()](#getcapstype) | Gets and sets the text caps type. The value of the property is TextCapsType integer constant. |
| [getCharset()](#getcharset) | Represent the character set. |
| [getColor()](#getcolor) | Gets or sets the com.aspose.cells.Color of the font. |
| [getDoubleSize()](#getdoublesize) | Gets and sets the double size of the font. |
| [getName()](#getname) | Gets or sets the name of the Font. |
| [getSchemeType()](#getschemetype) | Gets and sets the scheme type of the font. The value of the property is FontSchemeType integer constant. |
| [getScriptOffset()](#getscriptoffset) | Gets and sets the script offset,in unit of percentage |
| [getSize()](#getsize) | Gets or sets the size of the font. |
| [getStrikeType()](#getstriketype) | Gets the strike type of the text. The value of the property is TextStrikeType integer constant. |
| [getThemeColor()](#getthemecolor) | Gets and sets the theme color. If the font color is not a theme color, NULL will be returned. |
| [getUnderline()](#getunderline) | Gets or sets the font underline type. The value of the property is FontUnderlineType integer constant. |
| [isBold()](#isbold) | Gets or sets a value indicating whether the font is bold. |
| [isItalic()](#isitalic) | Gets or sets a value indicating whether the font is italic. |
| [isNormalizeHeights()](#isnormalizeheights) | Indicates whether the normalization of height that is to be applied to the text run. |
| [isStrikeout()](#isstrikeout) | Gets or sets a value indicating whether the font is single strikeout. |
| [isSubscript()](#issubscript) | Gets or sets a value indicating whether the font is subscript. |
| [isSuperscript()](#issuperscript) | Gets or sets a value indicating whether the font is super script. |
| [setArgbColor()](#setargbcolor) | Gets and sets the color with a 32-bit ARGB value. |
| [setBold()](#setbold) | Gets or sets a value indicating whether the font is bold. |
| [setCapsType()](#setcapstype) | Gets and sets the text caps type. The value of the property is TextCapsType integer constant. |
| [setCharset()](#setcharset) | Represent the character set. |
| [setColor()](#setcolor) | Gets or sets the com.aspose.cells.Color of the font. |
| [setDoubleSize()](#setdoublesize) | Gets and sets the double size of the font. |
| [setItalic()](#setitalic) | Gets or sets a value indicating whether the font is italic. |
| [setName()](#setname) | Gets or sets the name of the Font. |
| [setName()](#setname-1) |  |
| [setNormalizeHeights()](#setnormalizeheights) | Indicates whether the normalization of height that is to be applied to the text run. |
| [setSchemeType()](#setschemetype) | Gets and sets the scheme type of the font. The value of the property is FontSchemeType integer constant. |
| [setScriptOffset()](#setscriptoffset) | Gets and sets the script offset,in unit of percentage |
| [setSize()](#setsize) | Gets or sets the size of the font. |
| [setStrikeType()](#setstriketype) | Gets the strike type of the text. The value of the property is TextStrikeType integer constant. |
| [setStrikeout()](#setstrikeout) | Gets or sets a value indicating whether the font is single strikeout. |
| [setSubscript()](#setsubscript) | Gets or sets a value indicating whether the font is subscript. |
| [setSuperscript()](#setsuperscript) | Gets or sets a value indicating whether the font is super script. |
| [setThemeColor()](#setthemecolor) | Gets and sets the theme color. If the font color is not a theme color, NULL will be returned. |
| [setUnderline()](#setunderline) | Gets or sets the font underline type. The value of the property is FontUnderlineType integer constant. |
| [toString()](#tostring) | Returns a string represents the current Cell object. |

### equals(font) {#equals}

Checks if two fonts are equals.

| Parameter | Type | Description |
| --- | --- | --- |
| font | Font | Compared font object. |

**Returns:** boolean — `boolean` True if equal to the compared font object.

### getArgbColor() {#getargbcolor}

Gets and sets the color with a 32-bit ARGB value.

### getCapsType() {#getcapstype}

Gets and sets the text caps type. The value of the property is TextCapsType integer constant.

### getCharset() {#getcharset}

Represent the character set.

### getColor() {#getcolor}

Gets or sets the com.aspose.cells.Color of the font.

### getDoubleSize() {#getdoublesize}

Gets and sets the double size of the font.

### getName() {#getname}

Gets or sets the name of the Font.

**Example:**

```js
var font = style.getFont();
font.setName("Times New Roman");
cell.setStyle(style);
```

### getSchemeType() {#getschemetype}

Gets and sets the scheme type of the font. The value of the property is FontSchemeType integer constant.

### getScriptOffset() {#getscriptoffset}

Gets and sets the script offset,in unit of percentage

### getSize() {#getsize}

Gets or sets the size of the font.

### getStrikeType() {#getstriketype}

Gets the strike type of the text. The value of the property is TextStrikeType integer constant.

### getThemeColor() {#getthemecolor}

Gets and sets the theme color. If the font color is not a theme color, NULL will be returned.

### getUnderline() {#getunderline}

Gets or sets the font underline type. The value of the property is FontUnderlineType integer constant.

### isBold() {#isbold}

Gets or sets a value indicating whether the font is bold.

### isItalic() {#isitalic}

Gets or sets a value indicating whether the font is italic.

### isNormalizeHeights() {#isnormalizeheights}

Indicates whether the normalization of height that is to be applied to the text run.

### isStrikeout() {#isstrikeout}

Gets or sets a value indicating whether the font is single strikeout.

### isSubscript() {#issubscript}

Gets or sets a value indicating whether the font is subscript.

### isSuperscript() {#issuperscript}

Gets or sets a value indicating whether the font is super script.

### setArgbColor() {#setargbcolor}

Gets and sets the color with a 32-bit ARGB value.

### setBold() {#setbold}

Gets or sets a value indicating whether the font is bold.

### setCapsType() {#setcapstype}

Gets and sets the text caps type. The value of the property is TextCapsType integer constant.

### setCharset() {#setcharset}

Represent the character set.

### setColor() {#setcolor}

Gets or sets the com.aspose.cells.Color of the font.

### setDoubleSize() {#setdoublesize}

Gets and sets the double size of the font.

### setItalic() {#setitalic}

Gets or sets a value indicating whether the font is italic.

### setName() {#setname}

Gets or sets the name of the Font.

**Example:**

```js
var font = style.getFont();
font.setName("Times New Roman");
cell.setStyle(style);
```

### setName() {#setname-1}

### setNormalizeHeights() {#setnormalizeheights}

Indicates whether the normalization of height that is to be applied to the text run.

### setSchemeType() {#setschemetype}

Gets and sets the scheme type of the font. The value of the property is FontSchemeType integer constant.

### setScriptOffset() {#setscriptoffset}

Gets and sets the script offset,in unit of percentage

### setSize() {#setsize}

Gets or sets the size of the font.

### setStrikeType() {#setstriketype}

Gets the strike type of the text. The value of the property is TextStrikeType integer constant.

### setStrikeout() {#setstrikeout}

Gets or sets a value indicating whether the font is single strikeout.

### setSubscript() {#setsubscript}

Gets or sets a value indicating whether the font is subscript.

### setSuperscript() {#setsuperscript}

Gets or sets a value indicating whether the font is super script.

### setThemeColor() {#setthemecolor}

Gets and sets the theme color. If the font color is not a theme color, NULL will be returned.

### setUnderline() {#setunderline}

Gets or sets the font underline type. The value of the property is FontUnderlineType integer constant.

### toString() {#tostring}

Returns a string represents the current Cell object.

**Returns:** String — `String`
