( familyId: string, subset: string, axisKey: VariableAxisKey, style: FontStyle, sliceIndex: number, format: WebFontFormat, )
| 21 | }; |
| 22 | |
| 23 | export const generateVariableFilename = ( |
| 24 | familyId: string, |
| 25 | subset: string, |
| 26 | axisKey: VariableAxisKey, |
| 27 | style: FontStyle, |
| 28 | sliceIndex: number, |
| 29 | format: WebFontFormat, |
| 30 | ): string => { |
| 31 | const filenameStyle = formatStyle(style); |
| 32 | const sliceSuffix = sliceIndex > 0 ? `-${sliceIndex}` : ''; |
| 33 | |
| 34 | return `${familyId}-${subset}-${axisKey.toLowerCase()}-${filenameStyle}${sliceSuffix}.${format}`; |
| 35 | }; |
no test coverage detected