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

Function variableFace

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

Source from the content-addressed store, hash-verified

28});
29
30const variableFace = (
31 overrides: FaceOverrides & { subset: string },
32): FontFace => ({
33 weight: '100 900',
34 style: 'normal',
35 isVariable: true,
36 unicodeRange: '',
37 sources: [
38 {
39 format: 'woff2',
40 filename: overrides.filename ?? 'fixture.woff2',
41 },
42 ],
43 axisKey: 'wght',
44 stretch: null,
45 sliceIndex: 0,
46 ...overrides,
47});
48
49describe('css planner', () => {
50 it('assigns static faces to weight and subset assets', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected