lib_convert_designators_to_stroke
Converts TrueType .Designator text in a PcbLib to stroke font, clearing TrueType-only attributes so position changes persist after reload and designators can be centered.
Instructions
Convert every TrueType .Designator in a PcbLib to a stroke font.
A TrueType PCB text will not persist a position change made through
XLocation: the write reads back changed, then Altium recomputes the
position from the TrueType layout on reload and it reverts. That is why a
handful of designators per library refuse to centre. Bold/Italic
are TrueType-only attributes (a stroke text cannot be bold), so a bold or
italic designator is the reliable TrueType tell.
This clears UseTTFonts, Bold and Italic on each such
designator, reads back to confirm, saves, and reloads. Afterwards those
designators are stroke and lib_fix_designators can centre them.
Returns {library_path, designators, converted, names, saved}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| library_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||