# Core.FontDescriptor

## Content

# Interface: FontDescriptor

[Core](../modules/Core).FontDescriptor

Represents a font file descriptor.

**`example`**
```ts
const font: FontDescriptor = {
	name: 'Arial',
	source: 'fonts/arial.ttf',
	weight: '400',
};
```

## Table of contents

### Properties

- [locals](Core.FontDescriptor#locals)
- [name](Core.FontDescriptor#name)
- [postscriptName](Core.FontDescriptor#postscriptname)
- [source](Core.FontDescriptor#source)
- [style](Core.FontDescriptor#style)
- [useAsDefault](Core.FontDescriptor#useasdefault)
- [weight](Core.FontDescriptor#weight)

## Properties

### <a id="locals" name="locals"></a> locals

• `Optional` **locals**: `string`[]

Gets or sets the fallback font family names to search locally.

___

### <a id="name" name="name"></a> name

• **name**: `string`

Gets or sets the font family name (for example, `"Segoe UI"`).

___

### <a id="postscriptname" name="postscriptname"></a> postscriptName

• `Optional` **postscriptName**: `string`

Gets or sets the font PostScript name.

___

### <a id="source" name="source"></a> source

• **source**: `string` \| `string`[]

Gets or sets the font file URI(s). Supported formats are `.ttf`, `.otf`, and `.woff`.

___

### <a id="style" name="style"></a> style

• `Optional` **style**: `string`

Gets or sets the font style (for example, `"italic"`).

___

### <a id="useasdefault" name="useasdefault"></a> useAsDefault

• `Optional` **useAsDefault**: `boolean`

Gets or sets a value indicating whether the font is the default for PDF export.

___

### <a id="weight" name="weight"></a> weight

• `Optional` **weight**: `string`

Gets or sets the font weight (for example, `"bold"`).
