# FontRegistry.has Method

> FontRegistry.has method in the TX Sheet Control TypeScript API for Node.js: Check a family/weight/style face. Includes the syntax and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > FontRegistry > FontRegistry.has Method
- **526 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fontregistry/has-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fontregistry/has-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fontregistry/has-method/llms-full.txt

---

Check a family/weight/style face.

Owner: [FontRegistry](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fontregistry/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

### Syntax

```typescript
has(family: string, bold?: boolean, italic?: boolean): boolean
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `family` | `string` | No | Operation-specific input; see the owning type for units and scope. |
| `bold` | `boolean \| undefined` | Yes | Operation-specific input; see the owning type for units and scope. |
| `italic` | `boolean \| undefined` | Yes | Operation-specific input; see the owning type for units and scope. |

### Return Value

`boolean`.

A detached result or a handle bound to the same worksheet.

### Examples

Pass an existing FontRegistry from the owning document. Related handles and input bytes must belong to the intended document and application; the function applies the operation and inspects its result.

```typescript
function applyFontRegistryHas(fontRegistry: {
    has(argument0: string, argument1?: undefined | false | true, argument2?: undefined | false | true): unknown;
}) {
    const result = fontRegistry['has']('Liberation Sans', false, false);
    console.log(result);
}
```

### Remarks

Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.

### See Also

- [FontRegistry Class](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fontregistry/llms-full.txt)
- [Font Handling](https://docs.textcontrol.com/tx-sheet-control/deployment/fonts/llms-full.txt)

---

## Nearby

- **Previous:** [FontRegistry.add Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fontregistry/add-method/llms-full.txt)
- **Next:** [FontRegistry.measure Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fontregistry/measure-method/llms-full.txt)
