FontReportFile
One font file in the report.
One font file in the report.
Import#
ts
import type { FontReportFile } from "@shadow-js/dusk/vite";
Signature#
ts
interface FontReportFile {
/** The family's key in the input to `defineFonts` (`google:Inter` for a Google family). */
readonly key: string;
/** The family name. */
readonly family: string;
/** The URL the stylesheet names. */
readonly url: string;
/** The weight of the face (`400`, `"100 900"`), when declared. */
readonly weight: string | undefined;
/** `normal` or `italic`. */
readonly style: "normal" | "italic";
/** The size of the file on disk. */
readonly bytes: number;
/** Whether every page preloads the file (`preloads`). */
readonly preloaded: boolean;
}
Members#
| Name | Type | Description |
|---|---|---|
key |
readonly key: string |
The family's key in the input to defineFonts (google:Inter for a Google family). |
family |
readonly family: string |
The family name. |
url |
readonly url: string |
The URL the stylesheet names. |
weight |
readonly weight: string | undefined |
The weight of the face (400, "100 900"), when declared. |
style |
readonly style: "normal" | "italic" |
normal or italic. |
bytes |
readonly bytes: number |
The size of the file on disk. |
preloaded |
readonly preloaded: boolean |
Whether every page preloads the file (preloads). |