Vector kit command

text.missingFonts

Missing Fonts

Answers the fonts the document's type and symbols use that aren't available as named, with what they resolve to.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no

Parameters

Parameters of text.missingFonts
NameTypeRequiredDescription
selectionOnlybooleannoread by the command beside its listed parameters

Call through vector_run

text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "text.missingFonts" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: selectionOnly. vector_run answers the step’s result in completed[i].result.

Result

Result of text.missingFonts
NameTypeRequiredDescription
countnumberno
fontsany[]no
fontsNextToDocumentanyno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "count": {
      "type": "number"
    },
    "fonts": {
      "type": "array"
    },
    "fontsNextToDocument": {}
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "selectionOnly": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    }
  },
  "returns": "{fonts: [{family, style, status: missing|substitute, resolved: {family, style}}] (sorted by name; at most 1000), count, fontsNextToDocument?} the fonts the active document's type uses, in its layers and its symbols, that aren't available as named: missing (the family is unknown and the fallback family stands in) or substitute (the family is there but not the style; resolved names the stand-in), as text.fonts says. CSS generic families such as sans-serif and names longer than 256 bytes are left out. fontsNextToDocument: the Fonts folder next to the saved document (File › Package writes it), when there is one and a search may start there (not in another app's folders, such as a mail app's attachments)",
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (vector_commands through @kition/[email protected], built from KitionAI/kition-vector@7cf908f). As data: commands.jsonl.