## The CustomFontSource object This object is used to pass custom fonts when creating an [Elements](/js/elements_object/create.md) object. - `family` (string) **required** The name to give the font. - `src` (string) **required** A valid [src](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/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` (string) A valid [font-display](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display) value. - `style` (string) One of `normal`, `italic`, `oblique`. Defaults to `normal`. - `unicodeRange` (string) A valid [unicode-range](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/unicode-range) value. - `weight` (string) A valid [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight). Note that this is a string, not a number.