Skip to main content

Type Alias: FontSource

FontSource = string | BufferSource

Defined in: src/mobjects/text/registerFont.ts:23

A font source accepted by registerFont.

  • A string is a CSS source. A bare URL or path is wrapped as url("…"); a value that already starts with url( or local( is used verbatim.
  • A BufferSource (an ArrayBuffer or typed-array view) is font binary data, passed straight to the FontFace constructor.