2026-07-08 22:33:29 +02:00
# `dapi fonts`
2026-07-20 14:15:45 +02:00
Lists local fonts available on this machine. macOS only. Does not require the app to be running. Font families listed here are valid `fontFamily` values on [`<text>` ](./jsx/text.md ).
2026-07-08 22:33:29 +02:00
## Options
- `-f, --family <pattern>` : filter to families whose name contains `<pattern>` (case-insensitive)
- `-w, --weight <weights...>` : filter to variants with the given CSS weight(s), e.g. `-w 400 700`
- `-s, --style <style>` : `"normal"` or `"italic"`
- `-l, --limit <n>` : output at most `<n>` families
- `-n, --names-only` : output only family names, one per line, plain text (no JSON)
## Output
JSON Lines, one per family (or plain family names when `--names-only` is set):
```ts
{
family: string;
variants: Array< {
weight: string; // CSS weight, e.g. "400"
style: "normal" | "italic";
source: string; // CSS local() source
}>;
}
```