Skip to content

FontObject

type FontObject = {
display?: 'auto' | 'block' | 'swap' | 'fallback' | 'optional';
family: string;
src: string;
style?: 'normal' | 'italic' | 'oblique';
unicodeRange?: string;
weight?: string | number;
};

A webfont source used by ChatKit typography.

optional display: "auto" | "block" | "swap" | "fallback" | "optional";

Font rendering behavior.


family: string;

CSS font-family name.


src: string;

URL of the font file.


optional style: "normal" | "italic" | "oblique";

Font style.


optional unicodeRange: string;

Optional unicode range descriptor.


optional weight: string | number;

Font weight.