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

Function makeVariableFontDownloadPath

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

Source from the content-addressed store, hash-verified

16
17// Some axes are all uppercase making packages inconsistent
18const makeVariableFontDownloadPath = (
19 fontDir: string,
20 fontId: string,
21 subset: string,
22 axes: string,
23 style: string,
24): string =>
25 cleanPaths(
26 `${fontDir}/files/${fontId}-${subset}-${axes.toLowerCase()}-${style}.woff2`,
27 );
28
29// Used for the src urls in CSS files
30const makeFontFilePath = (

Callers 2

getDownloadPathFunction · 0.90
utils.test.tsFile · 0.90

Calls 1

cleanPathsFunction · 0.85

Tested by

no test coverage detected