Skip to content
Shapemetry

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.

MethodDescriptionArgTypeDefaultMeaning
textStyleText 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.namestring'standard'Text style name (string expression; quote literals). 'standard' overrides the builtin.
fontstringA 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.
heightlength3.5Cap height in model units — the size a drafter states.
widthFactornumberHorizontal stretch, 1 = natural (DXF group code 41).
obliqueangleSlant in degrees, 0 = upright (DXF group code 50).
Last updated: 📖 1 min readEdit on GitHub