MCPcopy Index your code
hub / github.com/fontsource/fontsource / buildWithFixture

Function buildWithFixture

packages/core/tests/processor.test.ts:25–36  ·  view source on GitHub ↗
(
	buffer: Uint8Array,
	config: FontBuildConfig,
)

Source from the content-addressed store, hash-verified

23});
24
25const buildWithFixture = async (
26 buffer: Uint8Array,
27 config: FontBuildConfig,
28): Promise<FontBuildResult> => {
29 const ctx = createFontContext();
30
31 try {
32 return await buildFont(ctx, [buffer], config);
33 } finally {
34 ctx.destroy();
35 }
36};
37
38describe('buildFont integration with real fixtures', () => {
39 it('infers static metadata and groups multiple output formats into one face', async () => {

Callers 1

processor.test.tsFile · 0.85

Calls 3

createFontContextFunction · 0.90
buildFontFunction · 0.90
destroyMethod · 0.80

Tested by

no test coverage detected