Skip to main content

Interface: GlyphVMobjectOptions

Defined in: mobjects/text/GlyphVMobject.ts:16

Properties

color?

optional color: string

Defined in: mobjects/text/GlyphVMobject.ts:28

Stroke color


font

font: Font

Defined in: mobjects/text/GlyphVMobject.ts:20

The font this glyph belongs to (needed for unitsPerEm)


fontSize

fontSize: number

Defined in: mobjects/text/GlyphVMobject.ts:22

Font size in pixels


glyph

glyph: Glyph

Defined in: mobjects/text/GlyphVMobject.ts:18

The opentype.js Glyph object


skeletonOptions?

optional skeletonOptions: SkeletonizeOptions

Defined in: mobjects/text/GlyphVMobject.ts:38

Options forwarded to the skeletonization algorithm.


strokeWidth?

optional strokeWidth: number

Defined in: mobjects/text/GlyphVMobject.ts:30

Stroke width for outline drawing


useSkeletonStroke?

optional useSkeletonStroke: boolean

Defined in: mobjects/text/GlyphVMobject.ts:36

When true, compute the skeleton (medial axis) of the glyph outline so the Write animation can draw along the center-line rather than the perimeter. Default: false.


xOffset?

optional xOffset: number

Defined in: mobjects/text/GlyphVMobject.ts:24

X offset in pixels (for character positioning)


yOffset?

optional yOffset: number

Defined in: mobjects/text/GlyphVMobject.ts:26

Y offset in pixels