Refactored JSX elements from lowercase to PascalCase, including `<scene>` to `<Scene>`, `<text>` to `<Text>`, and others, to improve consistency and clarity in the codebase. Updated related documentation to reflect these changes, ensuring that the usage of JSX elements aligns with the new naming conventions. This update enhances the overall readability and usability of the JSX API.
887 B
887 B
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>.
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):
{
family: string;
variants: Array<{
weight: string; // CSS weight, e.g. "400"
style: "normal" | "italic";
source: string; // CSS local() source
}>;
}