# FontRegistrationOptions

## Content

# Interface: FontRegistrationOptions

Options for font registration.

## Properties

### addToUI?

```ts
optional addToUI: boolean;
```

If true, the font will be added to the UI for selection. Default is true.

***

### clientOnly?

```ts
optional clientOnly: boolean;
```

If true, the font data will not be sent to the SupportApi server.
This is useful if the font is already registered on the server.

***

### displayName?

```ts
optional displayName: string;
```

A user-friendly name for the font to be displayed in the UI.

***

### embedMode?

```ts
optional embedMode: FontEmbedMode;
```

Specifies the font embedding mode for PDF generation.
- `NotEmbed`: The font is not embedded.
- `EmbedSubset`: A subset of the font is embedded.
- `EmbedFullFont`: The whole font is embedded.
- `EmbedSubsetNoForms`: A subset of the font is embedded for static content.
  If the font is used in the Acroform, a non-embedded PDF font will be associated with the form fields.

***

### format?

```ts
optional format: FontFormat;
```

The format of the font file ("truetype", "opentype", "woff", "woff2", or "ttc").
If not provided, the function will attempt to determine the format from the URL.

***

### serverOnly?

```ts
optional serverOnly: boolean;
```

If true, the font will not be registered on the client but will be sent to the SupportApi server.
