# FontRegistry.has Method

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

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

---

Check a family/weight/style face.

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

### Syntax

```javascript
owner.has(family, bold, italic)
```

### 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.

```javascript
function applyFontRegistryHas(fontRegistry) {
    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/javascript-api/browser/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/javascript-api/browser/fontregistry/add-method/llms-full.txt)
- **Next:** [FontRegistry.measure Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/fontregistry/measure-method/llms-full.txt)
