Custom Font Source Object
The CustomFontSource object This object is used to pass custom fonts when creating an Elements object. -
Last verified 2026-09-24
Is this helpful?
family The name to give the font. - src A valid src value pointing to your custom font file. This is usually (though not always) a link to a file with a .woff , .otf, or .svg suffix. The file must be hosted on https. - display A valid font-display value. - style One of normal, italic, oblique. Defaults to normal. - unicodeRange A valid unicode-range value. - weight A valid font-weight. Note that this is a string, not a number.Is this helpful?