Type Alias: FontSource
FontSource =
string|BufferSource
Defined in: src/mobjects/text/registerFont.ts:23
A font source accepted by registerFont.
- A
stringis a CSS source. A bare URL or path is wrapped asurl("…"); a value that already starts withurl(orlocal(is used verbatim. - A
BufferSource(anArrayBufferor typed-array view) is font binary data, passed straight to theFontFaceconstructor.