@mocanvas/mocanvas · interface
interface TLTypeFaceA font file to load, as preloadFont takes it.
Distinct from TLFontFace, which carries a ready-made CSS src
descriptor: this one names a URL and a format and lets the loader build the
descriptor, which is what an app that just wants to point at a .woff2
needs.
Properties · 9
display?: FontDisplayfont-display descriptor.
featureSettings?: stringfont-feature-settings descriptor.
format?: stringFont format hint, e.g. "woff2". Appended to the src descriptor when given.
stretch?: stringfont-stretch descriptor.
style?: stringfont-style descriptor.
unicodeRange?: stringunicode-range descriptor.
url: stringWhere the font file is.
variant?: stringfont-variant descriptor.
weight?: stringfont-weight descriptor.
Mentioned here
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.