Vector kit command
text.fontList
Font List
Answers the font families available to the kit (bundled, added and installed), by their canonical names for text.setStyle.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
family | string | no | |
selectionOnly | boolean | no | read by the command beside its listed parameters |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "text.fontList" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: family, selectionOnly. vector_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
families | string[] | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"families": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"family": {
"type": "string"
},
"selectionOnly": {
"description": "read by the command beside its listed parameters",
"type": "boolean"
}
},
"returns": "{families: [names]} sorted: the bundled fonts, fonts added and the fonts installed on the system (none on the web), each the family's English (canonical) name for `text.setStyle` and documents (without the system's hidden families, whose names start with a dot; they still resolve by name). Preferences › Type › Show Font Names in English only changes the UI menu labels, not this list; with family: {family, styles: [names]} (upright styles by weight, then italics; an error when the family isn't available)",
"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.