> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reducto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Types: layout and fonts: Tables

## `TableFaceProvider`

A FaceProvider over a FaceTable, plus the by-family verbs a host needs around it.

Import from `@reductoai/xlsx/view`.

| Name | Type | Description |
| - | - | - |
| `bytes()` | `(id: string) => Uint8Array<ArrayBufferLike> \| null` | Face bytes held here, or an embedded face the registry extracted. |
| `familyFaceIds()` | `(family: string) => Promise<string[]>` | Ids of one family's faces, for a targeted prefetch. |
| `familyFaces()` | `(families: Iterable<string>) => Promise<[string, Uint8Array<ArrayBufferLike>][]>` | The faces of `families`, fetched when missing. For consumers that resolve fonts by name outside the layout trace: the metafile rasterizer, the PDF writer's fallback family. |
| `fetch()` | `(ids: string[], onProgress?: FetchProgress) => Promise<number>` | Pull the faces named by `ids` that are not held yet; returns the bytes pulled. |
| `heldIds()` | `() => string[]` | Ids whose bytes this thread holds; a worker skips these when it ships faces over. |
| `install()` | `() => Promise<void>` | Register every family on `defaultFontRegistry`; face bytes may still be absent. Memoized. |
| `seed()` | `(faces: Iterable<[string, Uint8Array<ArrayBufferLike>]>) => void` | Adopt face bytes another thread fetched, so `bytes` can serve them here. |
| `table()` | `() => Promise<FaceTable>` | The table, after `install`. |

## `TableGeom`

Where a table sits: rows and columns zero-based and inclusive, header and totals rows counted in.

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `c0` | `number` | |
| `c1` | `number` | |
| `columns` | `string[]` | |
| `headerRows` | `number` | |
| `name` | `string` | |
| `r0` | `number` | |
| `r1` | `number` | |
| `sheet` | `number` | |
| `totalsRows` | `number` | |

## `TableInfo`

A table part read for formulas: geometry, column names and the part it lives in.

Not exported by name. You get it from the API.

```ts theme={null}
type TableInfo = TableGeom & { columnIds: number[]; displayName: string; filtered: boolean; flags: Record<string, boolean>; hasFilter: boolean; id: number; part: string; style: string | null }
```

## `TableLookup`

Tables a formula can name; `at` is the table holding the formula cell, for `[@Col]` without a table.

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `at()` | `(row: number, col: number) => TableGeom \| undefined` | |
| `named()` | `(name: string) => TableGeom \| undefined` | |
