Vector kit command
text.fonts
Fonts in Document
Answers the fonts the document's type uses, with how they resolve (exact, substitute, missing) and missing glyphs.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
selectionOnly | boolean | no |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "text.fonts" }]
}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 JSON Schema
json
{
"type": "array"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"selectionOnly": {
"type": "boolean"
}
},
"returns": "[{family, style, runs, objects, missing, status: exact|substitute|missing, resolved: {family, style}, missingGlyphs, version?: the installed version the type names (when it names one)}] sorted by name. A font is found by any of its names (ヒラギノ角ゴシック = Hiragino Sans) among the loaded and installed fonts; substitute: the family is there but not the style (resolved names the stand-in); missing: the family is unknown (the fallback family stands in); missingGlyphs: characters of its text the resolved font lacks (drawn by a fallback font); noGlyph: those no font here has (not drawn)",
"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.