Model - textStyles[]
Every method of the textStyles[] lane. Each step of a textStyles[] entry returns a textStyle, and the lane's entries are addressed by the identity schema/lanes.ts declares for it.
| Method | Description | Arg | Type | Default | Meaning |
|---|---|---|---|---|---|
textStyle | Text Style — How a string is DRAWN — font, height, stretch, slant. textStyles[] lane only; referenced by name from a text node's style arg and from every annotationStyle. The mark itself carries none of this, which is what makes a drawing restylable. | name | string | 'standard' | Text style name (string expression; quote literals). 'standard' overrides the builtin. |
font | string | A url-method parameter key naming an attached font file (the existing asset mechanism), or a family name the reader looks up. Omit for the reader's default face. | |||
height | length | 3.5 | Cap height in model units — the size a drafter states. | ||
widthFactor | number | Horizontal stretch, 1 = natural (DXF group code 41). | |||
oblique | angle | Slant in degrees, 0 = upright (DXF group code 50). |