
## Font class

Encapsulates the font object used in a spreadsheet.

## Properties

| Name | Type | Description |
| --- | --- | --- |
| [Charset](#charset) | Number | Represent the character set. |
| [IsItalic](#isitalic) | boolean | Gets or sets a value indicating whether the font is italic. |
| [IsBold](#isbold) | boolean | Gets or sets a value indicating whether the font is bold. |
| [CapsType](#capstype) | Number | Gets and sets the text caps type. The value of the property is TextCapsType integer constant. |
| [StrikeType](#striketype) | Number | Gets the strike type of the text. The value of the property is TextStrikeType integer constant. |
| [IsStrikeout](#isstrikeout) | boolean | Gets or sets a value indicating whether the font is single strikeout. |
| [ScriptOffset](#scriptoffset) | Number | Gets and sets the script offset,in unit of percentage |
| [IsSuperscript](#issuperscript) | boolean | Gets or sets a value indicating whether the font is super script. |
| [IsSubscript](#issubscript) | boolean | Gets or sets a value indicating whether the font is subscript. |
| [Underline](#underline) | Number | Gets or sets the font underline type. The value of the property is FontUnderlineType integer constant. |
| [Name](#name) | String | Gets or sets the name of the Font . |
| [DoubleSize](#doublesize) | Number | Gets and sets the double size of the font. |
| [Size](#size) | Number | Gets or sets the size of the font. |
| [ThemeColor](#themecolor) | ThemeColor | Gets and sets the theme color. If the font color is not a theme color, NULL will be returned. |
| [Color](#color) | Color | Gets or sets the com.aspose.cells.Color of the font. |
| [ArgbColor](#argbcolor) | Number | Gets and sets the color with a 32-bit ARGB value. |
| [IsNormalizeHeights](#isnormalizeheights) | boolean | Indicates whether the normalization of height that is to be applied to the text run. |
| [SchemeType](#schemetype) | Number | Gets and sets the scheme type of the font. The value of the property is FontSchemeType integer constant. |

## Methods

| Name | Description |
| --- | --- |
| [setName](#setname) |  |
| [equals](#equals) | Checks if two fonts are equals. |
| [toString](#tostring) | Returns a string represents the current Cell object. |

### Font.Charset property {#charset}

Represent the character set.

**Type:** Number

### Font.IsItalic property {#isitalic}

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

**Type:** boolean

### Font.IsBold property {#isbold}

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

**Type:** boolean

### Font.CapsType property {#capstype}

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

**Type:** Number

### Font.StrikeType property {#striketype}

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

**Type:** Number

### Font.IsStrikeout property {#isstrikeout}

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

**Type:** boolean

### Font.ScriptOffset property {#scriptoffset}

Gets and sets the script offset,in unit of percentage

**Type:** Number

### Font.IsSuperscript property {#issuperscript}

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

**Type:** boolean

### Font.IsSubscript property {#issubscript}

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

**Type:** boolean

### Font.Underline property {#underline}

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

**Type:** Number

### Font.Name property {#name}

Gets or sets the name of the Font .

**Type:** String

### Font.DoubleSize property {#doublesize}

Gets and sets the double size of the font.

**Type:** Number

### Font.Size property {#size}

Gets or sets the size of the font.

**Type:** Number

### Font.ThemeColor property {#themecolor}

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

**Type:** ThemeColor

### Font.Color property {#color}

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

**Type:** Color

### Font.ArgbColor property {#argbcolor}

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

**Type:** Number

### Font.IsNormalizeHeights property {#isnormalizeheights}

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

**Type:** boolean

### Font.SchemeType property {#schemetype}

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

**Type:** Number

### setName(name, type) {#setname}

### equals(font) {#equals}

Checks if two fonts are equals.

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

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

### toString() {#tostring}

Returns a string represents the current Cell object.
