IThemePublisherFontFace
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
One hosted font file registered as a font face for rendered documents.
export interface IThemePublisherFontFace
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
string | (ALPHA) Font family name the face registers; referenced from IThemePublisherTypography.fontFamily. | ||
“normal” | “italic” | (ALPHA) (Optional) Defaults to “normal”. | ||
string | (ALPHA) Absolute http(s) URL of a TTF/OTF/WOFF/WOFF2 file. | ||
number | (ALPHA) (Optional) CSS font-weight (1-1000). Defaults to 400. |
Property details
IThemePublisherFontFace.familypropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
Font family name the face registers; referenced from IThemePublisherTypography.fontFamily.
family: string;
IThemePublisherFontFace.stylepropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
Defaults to “normal”.
style?: "normal" | "italic";
IThemePublisherFontFace.urlpropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
Absolute http(s) URL of a TTF/OTF/WOFF/WOFF2 file.
url: string;
IThemePublisherFontFace.weightpropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
CSS font-weight (1-1000). Defaults to 400.
weight?: number;