editor/reference/fonts.md
konstantin-paulus c1bc3f0085 Update package.json and README for consistency and clarity
Modified the "check" script in package.json to reference the correct "examples" directory. Updated the README to replace "video editor" with "media compositor" for improved accuracy and restructured some sentences for better readability. Removed outdated documentation files related to assets, CLI, composition, distribution, and getting started, streamlining the documentation for a more focused user experience.
2026-07-20 15:53:30 +02:00

27 lines
887 B
Markdown

# `dapi fonts`
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).
## 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
}>;
}
```