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

Function makeFontDownloadPath

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

Source from the content-addressed store, hash-verified

3
4// Used to determine where the downloader should save the files
5const makeFontDownloadPath = (
6 fontDir: string,
7 fontId: string,
8 subset: string,
9 weight: number,
10 style: string,
11 extension: string,
12): string =>
13 cleanPaths(
14 `${fontDir}/files/${fontId}-${subset}-${weight}-${style}.${extension}`,
15 );
16
17// Some axes are all uppercase making packages inconsistent
18const makeVariableFontDownloadPath = (

Callers 2

getDownloadPathFunction · 0.90
utils.test.tsFile · 0.90

Calls 1

cleanPathsFunction · 0.85

Tested by

no test coverage detected