Skip to content
Shapemetry

@huukhanhnguyen/types / evaluate/textStyle

evaluate/textStyle

TextStyle

TextStyle = { font?: string; height: number; name: string; oblique?: number; widthFactor?: number; }

Produced by collectTextStyleNodes() from an authored textStyle node's expression args; consumed BY NAME (identity: "name", matching materials / layers / styles).

font?

optional font?: string

A url-method parameter key naming an attached font file (the asset mechanism assetTypeOf already resolves), OR a family name the reader looks up itself. Absent = the reader's own default face.

height

height: number

Cap height in MODEL units — the size a drafter states.

name

name: string

oblique?

optional oblique?: number

Slant in degrees, 0 = upright (DXF group code 50).

widthFactor?

optional widthFactor?: number

Horizontal stretch, 1 = natural (DXF group code 41).

Last updated: 📖 1 min readEdit on GitHub