Use fonts in woff2 (#6012)

This commit is contained in:
Piotr Monwid-Olechnowicz 2024-11-20 21:55:01 +01:00 committed by GitHub
parent e5e0f97878
commit beccf761a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 2 additions and 10 deletions

View file

@ -6,17 +6,9 @@ import '../components/navigation-menu/navbar-global-styles.css';
import '../selection-styles.css';
const neueMontreal = localFont({
// TODO: Swap to variable version.
// TODO: We only use 400 and 500 weights, right?
src: [
{ path: '../fonts/NeueMontreal-Light.otf', weight: '300' },
{ path: '../fonts/NeueMontreal-Light.otf', style: 'italic' },
{ path: '../fonts/NeueMontreal-Regular.otf', weight: '400' },
{ path: '../fonts/NeueMontreal-Italic.otf', weight: '400', style: 'italic' },
{ path: '../fonts/NeueMontreal-Medium.otf', weight: '500' },
{ path: '../fonts/NeueMontreal-MediumItalic.otf', weight: '500', style: 'italic' },
{ path: '../fonts/NeueMontreal-Bold.otf', weight: '700' },
{ path: '../fonts/NeueMontreal-BoldItalic.otf', weight: '700', style: 'italic' },
{ path: '../fonts/PPNeueMontreal-Regular.woff2', weight: '400' },
{ path: '../fonts/PPNeueMontreal-Medium.woff2', weight: '500' },
],
});