Styles: Create Text Style
textstyle_createCreate a new AutoCAD text style with a specified font, height, width factor, and oblique angle, and optionally set it as current.
Instructions
Create a text style.
Headlessly a font nobody can find is written and reported
font_resolved: false (AutoCAD substitutes at open; the headless
renderer falls back), because a DXF stores only the name. The live
engine cannot do that: ActiveX refuses a font AutoCAD cannot open, so a
file that is neither on its support path nor in the Windows Fonts folder
is refused there before any write (the message names the folders and the
presets); a TrueType font is written by its typeface (SetFont, what the
STYLE dialog does — the record carries arial.ttf, never a machine
path), an SHX by the file name. Refuses, before any write on both
engines: a name that exists, an empty font, width_factor <= 0,
height < 0, an oblique angle outside ±85°.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| font | Yes | isocp.shx | isocpeur.ttf | arial.ttf | romans.shx (name or file, any case) or any font file | |
| name | Yes | New text style name, e.g. ISOCP | |
| height | No | Fixed height; 0 = ask per text | |
| oblique_deg | No | Obliquing angle in degrees, -85..85 | |
| set_current | No | Also make it the current text style | |
| width_factor | No | Width factor |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||