Function
staticFace
(
overrides: FaceOverrides & { subset: string; weight: number },
)
Source from the content-addressed store, hash-verified
| 12 | }; |
| 13 | |
| 14 | const 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 | |
| 30 | const variableFace = ( |
| 31 | overrides: FaceOverrides & { subset: string }, |
Tested by
no test coverage detected