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

Function makeFontFilePath

packages/cli/src/utils.ts:30–37  ·  view source on GitHub ↗
(
	fontId: string,
	subset: string,
	weight: string,
	style: string,
	extension: string,
)

Source from the content-addressed store, hash-verified

28
29// Used for the src urls in CSS files
30const makeFontFilePath = (
31 fontId: string,
32 subset: string,
33 weight: string,
34 style: string,
35 extension: string,
36): string =>
37 cleanPaths(`./files/${fontId}-${subset}-${weight}-${style}.${extension}`);
38
39const makeVariableFontFilePath = (
40 fontId: string,

Callers 7

packagerCustomFunction · 0.90
utils.test.tsFile · 0.90
generateV1CSSFunction · 0.50
generateV2CSSFunction · 0.50
generateVariableCSSFunction · 0.50
generateIconStaticCSSFunction · 0.50
generateIconVariableCSSFunction · 0.50

Calls 1

cleanPathsFunction · 0.85

Tested by

no test coverage detected