FontFamily
Describes an available font family and its styles.
FontFamily interface
Describes a font family available in the current project, including all of its styles and where it was loaded from.
Signature:
interface FontFamily {
family: string;
styles: readonly string[];
defaultStyle: string;
source: FontSource;
}Properties
Property | Type | Description |
|---|---|---|
family | string | The font family name. |
styles | readonly string[] | All styles available within this family (e.g. |
defaultStyle | string | The style to use when none is specified. |
source | Where this font was loaded from. |
Last updated: August 5, 2026 at 11:47 AMEdit this page