FamilyProperties Type — astro Architecture
Architecture documentation for the FamilyProperties type/interface in types.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD d256dda8_e2d1_ff5d_9018_5ff5f4a201ae["FamilyProperties"] 0414cf8f_0404_f03b_316f_0d732aa66968["types.ts"] d256dda8_e2d1_ff5d_9018_5ff5f4a201ae -->|defined in| 0414cf8f_0404_f03b_316f_0d732aa66968 style d256dda8_e2d1_ff5d_9018_5ff5f4a201ae fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/assets/fonts/types.ts lines 60–89
export interface FamilyProperties {
/**
* @default `"swap"`
*
* Defines [how a font displays](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display) based on when it is downloaded and ready for use.
*/
display?: Display | undefined;
/**
* A [font stretch](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-stretch).
*/
stretch?: string | undefined;
/**
* Controls the [typographic font features](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-feature-settings) (e.g. ligatures, small caps, or swashes).
*/
featureSettings?: string | undefined;
/**
* Font [variation settings](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-variation-settings).
*/
variationSettings?: string | undefined;
/**
* Determines when a font must be downloaded and used based on a specific [range of unicode characters](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/unicode-range).
* If a character on the page matches the configured range, the browser will download the font and all characters will be available for use on the page. To configure a subset of
* characters preloaded for a single font, see the [subsets](#fontsubsets) property instead.
*
* This can be useful for localization to avoid unnecessary font downloads when a specific part of your website uses a different alphabet and will be displayed with a separate
* font. For example, a website that offers both English and Japanese versions can prevent the browser from downloading the Japanese font on English versions of the page that do
* not contain any of the Japanese characters provided in `unicodeRange`.
*/
unicodeRange?: [string, ...Array<string>] | undefined;
}
Defined In
Source
Frequently Asked Questions
What is the FamilyProperties type?
FamilyProperties is a type/interface in the astro codebase, defined in packages/astro/src/assets/fonts/types.ts.
Where is FamilyProperties defined?
FamilyProperties is defined in packages/astro/src/assets/fonts/types.ts at line 60.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free