baz.studio API

baz font

Manage project fonts

baz font [options] [command]
OptionDescription
-h, --helpdisplay help for command

baz font list

List the font families and weights an export can render exactly

baz font list [options]
OptionDescription
-h, --helpdisplay help for command
Sources, in the order the renderer resolves them:
  uploaded  Faces uploaded to the active project (baz font upload). Listed when a project is active.
  catalog   Families bundled with the export renderer. These are the faces an export
            report shows in fontFaces with source "catalog".

A family that is not listed resolves through Google Fonts at render time.
The catalog never substitutes a nearby weight. An unlisted weight falls to Google Fonts or to CSS font matching.

Examples:
  baz font list
  baz font list --project-id <id> --json

baz font upload

Upload a WOFF2, WOFF, TTF, or OTF font to the active project

baz font upload [options] <file>
OptionDescription
--family <name>CSS font-family name, for example Effra
--weight <weight>Font weight from 1 to 1000 Default: 400.
--style <style>Font style: normal or italic Default: normal.
-h, --helpdisplay help for command
Supported files:
  WOFF2, WOFF, TTF, and OTF.

Font face fields:
  --family is the CSS font-family name used in scene code.
  --weight identifies the uploaded face, for example 400 or 700.
  --style identifies a normal or italic face.

Examples:
  baz font upload ./Effra.ttf --family Effra --project-id <id>
  baz font upload ./Effra-BoldItalic.woff2 --family Effra --weight 700 --style italic --project-id <id> --json