# FontRegistry.alias Method

> FontRegistry.alias method in the browser JavaScript API: Map an original family to a registered target without changing workbook styles.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Sheet Control > API Reference > JavaScript API > Browser Editor > FontRegistry > FontRegistry.alias Method
- **251 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/fontregistry/alias-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/fontregistry/alias-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/fontregistry/alias-method/llms-full.txt

---

Map an original family to a registered target without changing workbook styles. Unknown targets and cyclic substitutions throw.

### Syntax

```javascript
alias(original: string, target: string): void;
```

### Example

```javascript
import { FontRegistry } from '@txtextcontrol/tx-sheet-control';

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

---

## Nearby

- **Previous:** [FontRegistry.snapshot Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/fontregistry/snapshot-method/llms-full.txt)
- **Next:** [FORMULA_FUNCTIONS Constant](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/formula-functions-constant/llms-full.txt)
