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

Function makeFontFileVariablePath

api/cdn/src/css.ts:28–37  ·  view source on GitHub ↗
(
	tag: string,
	subset: string,
	axes: string,
	style: string,
)

Source from the content-addressed store, hash-verified

26};
27
28export const makeFontFileVariablePath = (
29 tag: string,
30 subset: string,
31 axes: string,
32 style: string,
33) => {
34 return `https://cdn.jsdelivr.net/fontsource/fonts/${tag}/${subset}-${axes}-${style}.woff2`
35 .replace('[', '')
36 .replace(']', '');
37};
38
39const keyGen = (tag: string, filename: string) => `${tag}:${filename}`;
40const keyGenV = (tag: string, filename: string) =>

Callers 1

generateVariableVariantsFunction · 0.90

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected