MCPcopy Create free account
hub / github.com/fontsource/fontsource / staticFace

Function staticFace

packages/core/tests/css-planner.test.ts:14–28  ·  view source on GitHub ↗
(
	overrides: FaceOverrides & { subset: string; weight: number },
)

Source from the content-addressed store, hash-verified

12};
13
14const staticFace = (
15 overrides: FaceOverrides & { subset: string; weight: number },
16): FontFace => ({
17 style: 'normal',
18 isVariable: false,
19 unicodeRange: '',
20 sources: [
21 {
22 format: 'woff2',
23 filename: overrides.filename ?? 'fixture.woff2',
24 },
25 ],
26 sliceIndex: 0,
27 ...overrides,
28});
29
30const variableFace = (
31 overrides: FaceOverrides & { subset: string },

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected