---
title: "DecreaseFontSizeCmd | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/DecreaseFontSizeCmd/"
---

# DecreaseFontSizeCmd

> The command to decrease the font size by a specified value for the current cursor position or selected text.

## Classes

### DecreaseFontSizeCmd

#### Implements

- [`ICommand`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ICommand.md#icommand)

#### Constructors

##### Constructor

```ts
new DecreaseFontSizeCmd(textManager, initData): DecreaseFontSizeCmd;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `textManager` | [`ITextManager`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ITextManager.md#itextmanager) |
| `initData` | [`DecreaseFontSizeCmdData`](#decreasefontsizecmddata) |

###### Returns

[`DecreaseFontSizeCmd`](#decreasefontsizecmd)

#### Methods

##### execute()

```ts
execute(): boolean;
```

Executes the command.

###### Returns

`boolean`

true if changes were made, false otherwise.

###### Implementation of

[`ICommand`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ICommand.md#icommand).[`execute`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ICommand.md#execute)

***

### DecreaseFontSizeCmdData

Data required to initialize the command.

#### Constructors

##### Constructor

```ts
new DecreaseFontSizeCmdData(): DecreaseFontSizeCmdData;
```

###### Returns

[`DecreaseFontSizeCmdData`](#decreasefontsizecmddata)

#### Properties

##### value?

```ts
optional value?: number;
```

Value of decrease.
