Interface: TextOnPathGlyph
Defined in: src/mobjects/text/TextOnPath.ts:61
A pre-built glyph plus its advance width, for synchronous layout.
Properties
anchor?
optionalanchor:Vector3Tuple
Defined in: src/mobjects/text/TextOnPath.ts:76
Point in the glyph's own local frame that lands on the path, and about which the glyph rotates to the tangent. Defaults to the glyph's bounding-box center. Font mode sets it to the advance-box center (advance width / 2, half the x-height) so the x-height midline sits on the path. Without it, a glyph whose ink box differs from its advance box (a narrow glyph, or one with a dot such as 'i') is misplaced along and across the path.
leadingGap?
optionalleadingGap:number
Defined in: src/mobjects/text/TextOnPath.ts:67
Extra gap before this glyph (world units). Default 0.
mobject
mobject:
VMobject
Defined in: src/mobjects/text/TextOnPath.ts:63
The glyph mobject to position.
width?
optionalwidth:number
Defined in: src/mobjects/text/TextOnPath.ts:65
Advance width in world units. Defaults to mobject.getWidth().