# FontAsset.priority Property

> FontAsset.priority property in the Node.js TypeScript API: Higher priorities take precedence for matching faces of the same family, weight and style.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > FontAsset > FontAsset.priority Property
- **192 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fontasset/priority-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fontasset/priority-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fontasset/priority-property/llms-full.txt

---

Higher priorities take precedence for matching faces of the same family, weight and style.

### Syntax

```typescript
priority?: number;
```

### Example

```typescript
function configureInvoiceFonts(registry: { add(asset: { family: string; bytes: Uint8Array; priority?: number; fallback?: boolean }): void }, bytes: Uint8Array) {
    registry.add({ family: 'Invoice Sans', bytes, priority: 1, fallback: false });
}
```

---

## Nearby

- **Previous:** [FontAsset.italic Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fontasset/italic-property/llms-full.txt)
- **Next:** [FontAsset.fallback Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fontasset/fallback-property/llms-full.txt)
