obj_get_font_spec
Retrieves font size, name, bold, italic, underline, strikeout, and rotation for a font ID taken from an object’s FontId property by reading the Altium font table.
Instructions
Get font properties for a given font ID.
Reads the Altium font table to retrieve the full font specification (size, name, bold, italic, etc.) for a font ID obtained from an object's FontId property.
Args: font_id: Font ID from an object's FontId property
Returns: Dictionary with font_id, size, rotation, bold, italic, underline, strikeout, font_name
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"font_id": "<font_id>"
},
"name": "obj_get_font_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| font_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||