pcb_set_text_style
Adjust height and stroke width of PCB silkscreen designators or comments to meet fabrication requirements, optionally targeting specific components.
Instructions
Set the height and stroke width of component designators or comments.
Silkscreen text size is usually a fabrication requirement (for
example 0.8 mm high with a 0.1 mm stroke: height_mils=31.5, stroke_mils=3.94). Altium's stroke text has a height and a
stroke width and no separate character width: the characters
scale with the height.
For free texts use obj_modify on eTextObject with
Height and StrokeWidth (filter IsDesignator=false).
Args:
height_mils: Text height in mils. None leaves it.
stroke_mils: Stroke width in mils. None leaves it.
designators: Only these components (e.g. ["U1", "R5"]).
None applies to every component.
which: "designator" (default), "comment" or "both".
At least one of height_mils / stroke_mils must be given.
Returns:
Dict with matched components, changed and failed
texts, not_found designators, and texts: each one's
height and stroke as read back after the write. success
is false when any text did not take or a designator was not
found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| which | No | designator | |
| designators | No | ||
| height_mils | No | ||
| stroke_mils | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||