Skip to main content

Function: setFontLoaderFactory()

setFontLoaderFactory(factory): void

Defined in: src/mobjects/three-d/Text3D.ts:144

Inject a font-loader factory, replacing the lazy-loaded Three.js FontLoader. Pass null to restore the default. Tests use this to avoid any real loader.

Parameters​

factory​

FontLoaderFactory

Returns​

void