effect-motion
API Referenceeffect-motionNamespacesFontInterfaces

FontLoader

A loaded font, provided as a context service: bytes are already in memory

Interface: FontLoader<ID>

Defined in: packages/motion/src/Font.ts:34

A loaded font, provided as a context service: bytes are already in memory by the time any consumer reads this (loads run eagerly at layer construction — see layer). format is optional; consumers sniff magic bytes when absent.

Extends

Type Parameters

Type ParameterDefault type
ID extends stringstring

Properties

~effect-motion/Resources/Loader

readonly ~effect-motion/Resources/Loader: "~effect-motion/Resources/Loader";

Defined in: packages/motion/src/Resource.ts:14

Inherited from

LoaderBrand.~effect-motion/Resources/Loader


bytes

readonly bytes: Uint8Array;

Defined in: packages/motion/src/Font.ts:37


format?

readonly optional format?: "ttf" | "otf";

Defined in: packages/motion/src/Font.ts:38


id

readonly id: ID;

Defined in: packages/motion/src/Font.ts:36

On this page