Skip to main content

Interface: GlyphLayoutOptions

Defined in: src/mobjects/text/textOnPathLayout.ts:46

Options that drive computeGlyphPlacements.

Properties​

alignmentOffset?​

optional alignmentOffset: number

Defined in: src/mobjects/text/textOnPathLayout.ts:54

Perpendicular offset from the curve (world units). Default 0.


overflow?​

optional overflow: TextOnPathOverflow

Defined in: src/mobjects/text/textOnPathLayout.ts:56

Clamp to the ends or wrap around the path. Default 'clamp'.


rotateWithTangent?​

optional rotateWithTangent: boolean

Defined in: src/mobjects/text/textOnPathLayout.ts:52

Rotate each glyph to the path tangent. Default true.


startOffset?​

optional startOffset: number

Defined in: src/mobjects/text/textOnPathLayout.ts:48

Arc-length distance where the run starts. Default 0.


tracking?​

optional tracking: number

Defined in: src/mobjects/text/textOnPathLayout.ts:50

Extra spacing added after every glyph. Default 0.