Skip to content

Commit 3666491

Browse files
authored
Fix typo from next-font (#46468
<!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change(s) that you're making: --> Abbreviation for weight was `wgth` on axes iteration while other part was `wght`.
1 parent 714720f commit 3666491

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/font/src/google/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@ export function getUrl(
164164
// Variants are all combinations of weight and style, each variant will result in a separate font file
165165
const variants: Array<[string, string][]> = []
166166
if (axes.wght) {
167-
for (const wgth of axes.wght) {
167+
for (const wght of axes.wght) {
168168
if (!axes.ital) {
169-
variants.push([['wght', wgth], ...(axes.variableAxes ?? [])])
169+
variants.push([['wght', wght], ...(axes.variableAxes ?? [])])
170170
} else {
171171
for (const ital of axes.ital) {
172172
variants.push([
173173
['ital', ital],
174-
['wght', wgth],
174+
['wght', wght],
175175
...(axes.variableAxes ?? []),
176176
])
177177
}

0 commit comments

Comments
 (0)