Skip to content

Commit b161769

Browse files
committed
feat(fonts): Give woff2 priority
1 parent eacdd5c commit b161769

File tree

1 file changed

+6
-6
lines changed
  • packages/gamut-styles/src/remoteAssets

1 file changed

+6
-6
lines changed

packages/gamut-styles/src/remoteAssets/fonts.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,37 @@ export const FONT_ASSET_PATH = `https://www.codecademy.com/gamut`;
33
export const webFonts = [
44
{
55
filePath: `${FONT_ASSET_PATH}/apercu-regular-pro`,
6-
extensions: ['woff', 'woff2'],
6+
extensions: ['woff2', 'woff'],
77
name: 'Apercu',
88
},
99
{
1010
filePath: `${FONT_ASSET_PATH}/apercu-italic-pro`,
11-
extensions: ['woff', 'woff2'],
11+
extensions: ['woff2', 'woff'],
1212
name: 'Apercu',
1313
style: 'italic',
1414
},
1515
{
1616
filePath: `${FONT_ASSET_PATH}/apercu-bold-pro`,
17-
extensions: ['woff', 'woff2'],
17+
extensions: ['woff2', 'woff'],
1818
name: 'Apercu',
1919
weight: 'bold',
2020
},
2121
{
2222
filePath: `${FONT_ASSET_PATH}/apercu-bold-italic-pro`,
23-
extensions: ['woff', 'woff2'],
23+
extensions: ['woff2', 'woff'],
2424
name: 'Apercu',
2525
weight: 'bold',
2626
style: 'italic',
2727
},
2828
{
2929
filePath: `${FONT_ASSET_PATH}/SuisseIntlMono-Bold-WebS`,
30-
extensions: ['woff', 'woff2'],
30+
extensions: ['woff2', 'woff'],
3131
name: 'Suisse',
3232
weight: 'bold',
3333
},
3434
{
3535
filePath: `${FONT_ASSET_PATH}/SuisseIntlMono-Regular-WebS`,
36-
extensions: ['woff', 'woff2'],
36+
extensions: ['woff2', 'woff'],
3737
name: 'Suisse',
3838
},
3939
];

0 commit comments

Comments
 (0)