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

Function makeVariableFontFilePath

packages/cli/src/utils.ts:39–44  ·  view source on GitHub ↗
(
	fontId: string,
	subset: string,
	axes: string,
	style: string,
)

Source from the content-addressed store, hash-verified

37 cleanPaths(`./files/${fontId}-${subset}-${weight}-${style}.${extension}`);
38
39const makeVariableFontFilePath = (
40 fontId: string,
41 subset: string,
42 axes: string,
43 style: string,
44): string => cleanPaths(`./files/${fontId}-${subset}-${axes}-${style}.woff2`);
45
46// Insert a weight array to find the closest number given num - used for index.css gen
47const findClosest = (arr: number[], num: number): number => {

Callers 1

utils.test.tsFile · 0.90

Calls 1

cleanPathsFunction · 0.85

Tested by

no test coverage detected