## The CustomFontSource object

This object is used to pass custom fonts when creating an [Elements](https://docs.stripe.com/js/elements_object/create.md) object.

- `family`
The name to give the font.

- `src`
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`
A valid [font-display](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display) value.

- `style`
One of `normal`, `italic`, `oblique`. Defaults to `normal`.

- `unicodeRange`
A valid [unicode-range](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/unicode-range) value.

- `weight`
A valid [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight) value. Note that this is a string, not a number.