# resolveFontFace Type

> resolveFontFace type alias in the TX Sheet Control TypeScript API for Node.js, with the parameters families, style and shouldFallback and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > resolveFontFace Type
- **488 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/resolvefontface/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/resolvefontface/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/resolvefontface/llms-full.txt

---

Public type for resolveFontFace.

Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.

### Syntax

```typescript
resolveFontFace<Family extends { family: string; faces: readonly FontFaceSource[]; }>(families: readonly Family[], style: { fontFamily?: string; bold?: boolean; italic?: boolean; }, shouldFallback?: boolean): { family: Family; face: Family["faces"][number]; } | null
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `families` | `readonly Family[]` | No | Runtime descriptors, including at least one available face per family. |
| `style` | `{ fontFamily?: string; bold?: boolean; italic?: boolean; }` | No | Workbook font metadata; an omitted family uses the default document family. |
| `shouldFallback` | `boolean \| undefined` | Yes | Allows temporary display substitution. PDF preflight passes false. |

### Return Value

`{ family: Family; face: Family["faces"][number]; } | null`.

### Examples

Pass the resolveFontFace value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

```typescript
function inspectresolveFontFace(resolveFontFace: { value: unknown }) {
    const value = resolveFontFace;
    console.log('resolveFontFace.value', value);
}
```

### See Also

- [TypeScript Node.js Server API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/llms-full.txt)
- [Font Handling](https://docs.textcontrol.com/tx-sheet-control/deployment/fonts/llms-full.txt)

---

## Nearby

- **Previous:** [RenderOptions.dashboardPage Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/renderoptions/dashboardpage-property/llms-full.txt)
- **Next:** [SaveOptions Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/saveoptions/llms-full.txt)
