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

# IFontService

> ***

## Enumerations

### FontStyle

#### Enumeration Members

| Enumeration Member | Value |
| ------ | ------ |
|  `Bold` | `1` |
|  `BoldItalic` | `3` |
|  `Italic` | `2` |
|  `Other` | `4` |
|  `Regular` | `0` |

## Interfaces

### IFontData

#### Properties

##### default

```ts
default: boolean;
```

##### family

```ts
family: string;
```

##### postScriptName

```ts
postScriptName: string;
```

##### style

```ts
style: string;
```

##### system

```ts
system: boolean;
```

### IFontService

#### Properties

##### availableFontsByPsName

```ts
availableFontsByPsName: object;
```

###### Index Signature

```ts
[psName: string]: IFontData
```

#### Methods

##### findOriginalFamilyName()

```ts
findOriginalFamilyName(caseInsetiveFamilyName): string;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `caseInsetiveFamilyName` | `string` |

###### Returns

`string`

##### findOriginalPsName()

```ts
findOriginalPsName(caseInsetivePsName): string;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `caseInsetivePsName` | `string` |

###### Returns

`string`

##### findSuitableFontParams()

```ts
findSuitableFontParams(
   family, 
   requireBold, 
   requireItalic): object;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `family` | `string` |
| `requireBold` | `boolean` |
| `requireItalic` | `boolean` |

###### Returns

`object`

###### fauxBold

```ts
fauxBold: boolean;
```

###### fauxItalic

```ts
fauxItalic: boolean;
```

###### postScriptName

```ts
postScriptName: string;
```

##### getCssFontFamily()

```ts
getCssFontFamily(family): string;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `family` | `string` |

###### Returns

`string`

##### getCssPsName()

```ts
getCssPsName(postScriptName): string;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `postScriptName` | `string` |

###### Returns

`string`

##### recognizeStyleByPsName()

```ts
recognizeStyleByPsName(postScriptName): FontStyle;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `postScriptName` | `string` |

###### Returns

[`FontStyle`](#fontstyle)

##### waitInit()

```ts
waitInit(): Promise<void>;
```

###### Returns

[`Promise`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/finally.md#promise)\<`void`\>
