# FontAsset.priority Property

> FontAsset.priority property in the browser 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 > Browser Editor > FontAsset > FontAsset.priority Property
- **221 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fontasset/priority-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fontasset/priority-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/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
import { FontRegistry } from '@txtextcontrol/tx-sheet-control';

function invoiceFonts(bytes : Uint8Array) {
    const fonts = new FontRegistry();
    fonts.add({ family: 'Invoice Sans', bytes, priority: 1, fallback: false });
    return fonts.shape('Invoice 2026', '12px \"Invoice Sans\"');
}
```

---

## Nearby

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