Skip to content

Commit

Permalink
fix: sort the tuple for google fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerzl committed Mar 6, 2024
1 parent b5e7231 commit b133a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async function getFontDetails (family: string, variants: ResolveFontFacesOptions
? [`${variableWeight.min}..${variableWeight.max}`]
: variants.weights.filter(weight => String(weight) in font.fonts)
const resolvedVariants = weights.flatMap(w => [...styles].map(s => `${s},${w}`))

resolvedVariants.sort()
let css = ''

for (const extension in userAgents) {
Expand Down

0 comments on commit b133a91

Please sign in to comment.