---
title: "IFontService | Customer&#x27;s Canvas"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IFontService/"
archived: false
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Customer's Canvas Hub"
    versions: ["cloud"]
    entity_id: "https://customerscanvas.com/products/hub#software-application"
  - product: "Design Atoms JS"
    versions: ["7.4"]
---

# IFontService

**Applies to:** Customer's Canvas On-Premises; Customer's Canvas Hub cloud; Design Atoms JS 7.4

> API reference for the IFontService module in @aurigma/design-atoms-text.

## 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`\<`void`\>
