obj_get_font_id
Retrieves or creates an Altium font ID for specified font properties and returns it for use with obj_modify to set an object's FontId.
Instructions
Get or create a font ID for the given font properties.
Looks up (or creates) an entry in the Altium font table matching the
specified properties and returns its font ID. Use the returned font_id
to set an object's FontId property via obj_modify.
Args: size: Font size in points (e.g., 8, 10, 12) font_name: Font family name (default "Arial") bold: Whether the font is bold italic: Whether the font is italic rotation: Text rotation in degrees (0, 90, 180, 270) underline: Whether the font is underlined strikeout: Whether the font has strikeout
Returns: Dictionary with font_id
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bold | No | ||
| size | Yes | ||
| italic | No | ||
| rotation | No | ||
| font_name | No | Arial | |
| strikeout | No | ||
| underline | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||