diff --git a/src/providers/google.ts b/src/providers/google.ts index 6162e36..c1c8268 100644 --- a/src/providers/google.ts +++ b/src/providers/google.ts @@ -76,7 +76,7 @@ async function getFontDetails (family: string, variants: ResolveFontFacesOptions const weights = variableWeight ? [`${variableWeight.min}..${variableWeight.max}`] : variants.weights.filter(weight => String(weight) in font.fonts) - const resolvedVariants = weights.flatMap(w => [...styles].map(s => `${s},${w}`)) + const resolvedVariants = weights.flatMap(w => [...styles].map(s => `${s},${w}`)).sort() let css = ''