# FontFaceDefinition Interface

> FontFaceDefinition interface in the TX Sheet Control TypeScript API for the browser, with 6 properties and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > FontFaceDefinition Interface
- **482 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fontfacedefinition/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fontfacedefinition/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fontfacedefinition/llms-full.txt

---

One catalog font face; variable fonts retain weight/stretch ranges and an optional TrueType document source.

Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

Type-only declaration; it is not a JavaScript runtime constructor.

### Members

#### Properties

| Property | Description |
|---|---|
| [documentUrl](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fontfacedefinition/documenturl-property/llms-full.txt) | Optional TrueType equivalent for a WOFF2 display face. |
| [format](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fontfacedefinition/format-property/llms-full.txt) | The format value of FontFaceDefinition. |
| [stretch](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fontfacedefinition/stretch-property/llms-full.txt) | The stretch value of FontFaceDefinition. |
| [style](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fontfacedefinition/style-property/llms-full.txt) | The style value of FontFaceDefinition. |
| [url](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fontfacedefinition/url-property/llms-full.txt) | The url value of FontFaceDefinition. |
| [weight](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fontfacedefinition/weight-property/llms-full.txt) | The weight value of FontFaceDefinition. |

### Examples

Pass the FontFaceDefinition value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

```typescript
import type { FontFaceDefinition } from '@txtextcontrol/tx-sheet-control';

function inspectFontFaceDefinitionDocumentUrl(fontFaceDefinition: FontFaceDefinition) {
    const value = fontFaceDefinition['documentUrl'];
    console.log('FontFaceDefinition.documentUrl', value);
}
```

### See Also

- [TypeScript Browser Editor API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/llms-full.txt)
- [Font Handling](https://docs.textcontrol.com/tx-sheet-control/deployment/fonts/llms-full.txt)

---

## In This Section

- [FontFaceDefinition.documentUrl Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fontfacedefinition/documenturl-property/llms-full.txt): FontFaceDefinition.documentUrl property in the TX Sheet Control TypeScript API for the browser: Optional TrueType equivalent for a WOFF2 display face.
- [FontFaceDefinition.format Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fontfacedefinition/format-property/llms-full.txt): FontFaceDefinition.format property in the TX Sheet Control TypeScript API for the browser, with its type "ttf" | "woff2" and a TypeScript example.
- [FontFaceDefinition.stretch Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fontfacedefinition/stretch-property/llms-full.txt): FontFaceDefinition.stretch property in the TX Sheet Control TypeScript API for the browser, with its type string | undefined and a TypeScript example.
- [FontFaceDefinition.style Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fontfacedefinition/style-property/llms-full.txt): FontFaceDefinition.style property in the TX Sheet Control TypeScript API for the browser, with its type "italic" | "normal" and a TypeScript example.
- [FontFaceDefinition.url Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fontfacedefinition/url-property/llms-full.txt): FontFaceDefinition.url property in the TX Sheet Control TypeScript API for the browser, with its type string and a TypeScript example.
- [FontFaceDefinition.weight Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fontfacedefinition/weight-property/llms-full.txt): FontFaceDefinition.weight property in the TX Sheet Control TypeScript API for the browser, with its type string | number and a TypeScript example.

---

## Nearby

- **Previous:** [FontCatalog.warnings Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fontcatalog/warnings-property/llms-full.txt)
- **Next:** [FontFaceDefinition.documentUrl Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fontfacedefinition/documenturl-property/llms-full.txt)
